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

Eric_Hsieh at alphanetworks.com Eric_Hsieh at alphanetworks.com
Thu Apr 6 02:08:45 PDT 2017


Hi Ross

Got it. Thanks for your help.

> Ross Finlayson <finlayson at live555.com> 於 2017年4月6日 16:42 寫道:
>
>> 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/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

This electronic mail transmission is intended only for the named recipient. It contains information which may be privileged,confidential and exempt from disclosure under applicable law. Dissemination, distribution, or copying of this communication by anyone other than the recipient or the recipient's agent is strictly prohibited. If this electronic mail transmission is received in error, Please notify us immediately and delete the message and all attachments of it from your computer system. Thank you for your cooperation.



More information about the live-devel mailing list