[Live-devel] send error callback
Dirk Dugger
ddugger at isdcam.com
Tue Jul 17 22:32:20 PDT 2012
Ross Says:
> I'm looking at the case where I'm streaming rtp/tcp and the socket closes without a TEARDOWN.
In general it's a bad idea to complicate your application by trying to optimize the handling of an unusual situation. Especially because our server implementation already automatically handles this situation, by closing the connection and reclaims resources for inactive clients after "reclamationTestSeconds" seconds (default value: 65 seconds). (This also handles the situation where the client has 'died', even though the socket remains open.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------------------
Unfortunately I'm dealing with a client which does not send receiver reports, or any other indication which will update my liveness, so I have to DISABLE the liveness task. Furthermore, when the client closes, it doesn't TEARDOWN - it just FINs. So when that happens my CPU spikes since the rtsp server is going insane and will NEVER clean up. What I want is RTSPServer to behave like the inactivity timer went off when it detects a write error on the TCP socket. This is what I don't know how to do.
It is not an option to make the client behave nicely.
Thanks,
Dirk
More information about the live-devel
mailing list