<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"><blockquote type="cite">The "RTSPClientConnection" object gets deleted if the call to<br>"readSocket()" in<br>"RTSPServer::RTSPClientConnection::incomingRequestHandler1()" (line 786<br>of "RTSPServer.cpp) returns a value < 0 - which should happen when the<br>remote (i.e., client) end of the TCP connection gets closed<br></blockquote><br>The FreeBSD recv() page says that</blockquote><div><br></div>Note that I was referring to our "readSocket()" function, *not* the system "recv()"/"recvfrom()" function. Our "readSocket()" function - which is a wrapper around "recvfrom()" - returns -1 *even if* the "recvfrom()" call returns 0, for precisely the reason you mentioned.</div><div><br></div><div>Please everybody, stop 'speculating' on imagined bugs in the code. Remember, You Have Complete Source Code. If you find a real bug, please report it (with a clear explanation of why it's a bug). But I'm not going to waste time following up on random speculation (especially if it's about something that supposedly happens only with Windows).</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>