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/
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to