[Live-devel] RTSP socket from a server remains open after a client disconnection

Ross Finlayson finlayson at live555.com
Wed May 30 19:28:51 PDT 2018



> On May 30, 2018, at 7:16 PM, Warren Young <warren at etr-usa.com> wrote:
> 
> On May 30, 2018, at 7:34 AM, GENESTIER Denis <denis.genestier at thalesgroup.com> wrote:
>> 
>> Then if you disconnect the Ethernet wire of the computer B, the server will close the session, the RTP and RTCP sockets (in UDP mode), but not the RTSP connection (in TCP)
> 
> I’d say the real mystery here is how the UDP streams are being cut off, not why the TCP connection isn’t being dropped.

No, this isn’t a mystery at all.  The reason the UDP streams are being ‘cut off’ is because the server is closing/deleting the RTSP ‘session' (not ‘connection’) - which it does automatically after a certain period of inactivity (the parameter “reclamationTestSeconds”; by default, 65 seconds).

If there’s a mystery, it’s why the *client* is apparently becoming inactive, but still keeping the TCP socket alive.


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




More information about the live-devel mailing list