[Live-devel] RTSP client freezes under certain conditions

Michael Kostukov the-bishop at rogers.com
Wed Mar 22 10:51:31 PST 2006


I seem to have discovered a bug- please correct me if
I'm wrong.

'getResponse'  function from 'rtspclient.cpp'  uses
'getResponse1' function, which uses 'readSocket'
function WITHOUT ANY TIMEOUT (NULL is passed for
timeout). This means that if server dies for whatever
reason without sending "BYE" to client (or if RTCP is
disabled), then client will be stuck waiting forever
for response to any of RTSP commands it issues, like
"TEARDOWN".

I think there SHOULD be some reasonable timeout in
'getResponse', something like 10 seconds or so. What
do you think?

Michael


More information about the live-devel mailing list