[Live-devel] [ Propose ] Fix multi-thread issue when RTCPInstance new OutPacketBuffer

Ross Finlayson finlayson at live555.com
Sun May 25 05:07:50 PDT 2014


> Create multiple RTSP server in one process and every server is different thread ( multi-thread ).
If you do this, be sure that each thread uses its own "UsageEnvironment" and "TaskScheduler" objects; see http://www.live555.com/liveMedia/faq.html#threads

However, there's generally little or no benefit in having multiple RTSP server threads, because RTSP servers are not 'CPU bound', and do non-blocking I/O.  (But if you insist on having multiple, concurrent RTSP servers, it's better to run them in separate processes (not separate threads within a single process).)

Nonetheless, the problem you noted (with the code in "RTCP.cpp") is real.  I have just installed a new version - 2014.05.25 - of the "LIVE555 Streaming Media" code that fixes this (using a slightly different solution to the one that you proposed).


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/20140525/2caac53e/attachment.html>


More information about the live-devel mailing list