[Live-devel] How to drop client quickly when client is disconnection

Ross Finlayson finlayson at live555.com
Thu Apr 6 01:42:04 PDT 2017


> Using testOnDemandRTSPServer as rtsp server.
> Sometimes, client lose connection with server because of bad wifi.
> 
> Now, we know server have a timeout 65 sec to keep this connection alive.
> But, we want to drop this client as soon as possible.
> 
> So, do you know there is a way to know rtsp session is down and shutdown proper client?

In general, no, because the OS can keep a TCP connection (and thus socket) alive for a long time after it last heard from the remote endpoint.

However, if you wish you can, of course, reduce the 65 second timeout by changing the “reclamationSeconds” parameter in “RTSPServer::createNew()”.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list