> I have a problem with pulling RTSP streams that needs to be reliable. If the > stream stops I have a watchdog that times out after 5 seconds and changes my > watch variable so the event loop in basic task scheduler will exit. > > The problem is in one edge case, I have debugged found that the flag is never > read because I am stuck in singlestep(). So it looks like Select found data > but the subsequent readfrom never returns.
Rather than trying to figure out a workaround to a problem that you don't fully understand, I suggest first trying to understand what the problem actually is, and what's causing it. Saying that you're "stuck in SingleStep()" isn't really meaningful, because - in LIVE555-based applications - *everything* runs within a call to "SingleStep()". And these days, the call to "select()" within the "BasicTaskScheduler" event loop can never block indefinitely, because of the "maxSchedulerGranularity" parameter. And it seems unlikely that "recvfrom()" could be blocking, because the sockets it reads from are all non-blocking. > My live 555 is a few months old Everyone should upgrade to the latest version of the software before posting to the mailing list. 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