<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div dir="ltr"><div><ol><li><font face="microsoft jhenghei, sans-serif">Create multiple RTSP server in one process and every server is different thread ( <font color="#ff0000">multi-thread</font> ).</font></li></ol></div></div></blockquote><div>If you do this, be sure that each thread uses its own "UsageEnvironment" and "TaskScheduler" objects; see <a href="http://www.live555.com/liveMedia/faq.html#threads">http://www.live555.com/liveMedia/faq.html#threads</a></div><div><br></div><div>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).)</div><div><br></div><div>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).</div></div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>