[Live-devel] RTSP client takes significant time to close.

Ross Finlayson finlayson at live555.com
Tue Sep 28 01:11:06 PDT 2010


>When RTSP server does not send video strea, the following line at 
>RTSP client takes more time (sometimes in the order of seconds) to 
>return
>int selectResult = select(fMaxNumSockets, &readSet, NULL, NULL, 
>&tv_timeToDelay);
>
>When client application closes the RTSP client, how to ensure that 
>the above line to return immediately (e.g. within 500 milliseconds 
>max.)?

You will need to arrange for an event to happen - within that time 
frame - that will be recognized by the event loop.  The simplest way 
to do this is to create a periodic task.

For an illustration, see 
<http://lists.live555.com/pipermail/live-devel/2006-March/004192.html>
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100928/256ad236/attachment.html>


More information about the live-devel mailing list