[Live-devel] Connection to RTSP server failing after some time
Ross Finlayson
finlayson at live555.com
Thu Jan 19 23:53:35 PST 2023
> On Jan 19, 2023, at 11:32 PM, g.jaegy <g.jaegy at imagine3d.fr> wrote:
>
> Hi Ross,
>
> Actually, at any point there is no more than one or two connections opened simultaneously.
>
> What I did was to start ffplay, close ffplay, start ffplay, close ffplay, etc.
When you ‘close’ “ffplay”, is it sending a RTSP “TEARDOWN” command to the server? Or are you just killing it with <control-c? If the latter, then the server has no way to know that the RTSP TCP connection is no longer being used. It will wait for a period of time (by default, 65 seconds) to check whether it sees any more activity on that TCP connection. Then, and only then, will the server close the TCP connection.
So, if your client - for whatever reason - is starting, then killing “ffplay” several times in a row, then the server will keep each of these TCP connections will stay open for 65 seconds before reclaiming then.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list