<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" style="font-family: Arial, sans-serif;" class="">In order to avoid to reach the abort, I try an extra sanity check inside BasicTaskScheduler::setBackgroundHandling<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" style="font-family: Arial, sans-serif; background-color: silver; background-position: initial initial; background-repeat: initial initial;" class="">void BasicTaskScheduler::setBackgroundHandling(int socketNum, int conditionSet, BackgroundHandlerProc* handlerrProc, void * clientData) {<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 35.4pt;" class=""><span lang="EN-US" style="font-family: Arial, sans-serif; background-color: silver; background-position: initial initial; background-repeat: initial initial;" class="">if ( (socketNum <0) || (socketNum >= FD_SETSIZE) ) return;<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 35.4pt;" class=""><span lang="EN-US" style="font-family: Arial, sans-serif; background-color: silver; background-position: initial initial; background-repeat: initial initial;" class="">…</span><span lang="EN-US" style="font-family: Arial, sans-serif;" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""></div></div></div></blockquote><div><br class=""></div>Maybe, but I’m not convinced that this would really be useful, as the current code should already make sure (at a higher level) that “setBackgroundHandling()” (or “turnOnBackgroundReadHandling()”, which calls “setBackgroundHandling()”) does not get called with a socket number <0.  Also, it should never get called with a socket number >= FD_SETSIZE, because socket numbers this large should never have been given out (i.e., returned as a result of a “socket()” call) in the first place!</div><div><br class=""></div><div>Also, let me remind people once again that the number of sockets used by each stream can be reduced from 2 (RTP,RTCP) to 1 (RTP-muxed-with-RTCP) if both the server and client support this; see</div><div><span class="Apple-tab-span" style="white-space:pre">     </span><a href="http://lists.live555.com/pipermail/live-devel/2014-March/018179.html" class="">http://lists.live555.com/pipermail/live-devel/2014-March/018179.html</a></div><br class=""><br class=""><div apple-content-edited="true" class="">
<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 class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>