<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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Yes, I suppose I could add a test for “socketNum >= FD_SETSIZE” to “BasicTaskScheduler::setBackgroundHandling()” (note that there’s already a test for “socketNum < 0”). I would have thought/hoped that FD_SET() would have already tested for this, but perhaps not...</div><div class=""><br class=""></div><div class="">This is all assuming that it’s better to have the code just silently fail to handle events on any sockets with number > FD_SETSIZE, than to fail with an “internalError()” call in this case (due to “select()” having returned <0).</div></div></div></blockquote><div><br class=""></div></div>Actually, thinking about this some more - this is the reason why I *won’t* be adding this test. It really is an ‘internal error’, so the code should report it as such - rather than ‘failing silently’. (As I noted before, people can redefine the “internalError()” function to do whatever they want, if they don’t like the “abort()”.)<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>