<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] Race condition bug
fix</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">The
following fix prevents a bug when two requests are processed in close
proximity.</font></blockquote>
<div><br></div>
<div>No, the original code was correct. It's possible that an
incoming RTSP request will require more than one socket read in order
to obtain all the data for the request. In that case, the length
of the request data - as passed to "parseRTSPRequestString()"
- must be "fRequestBytesAlreadySeen", not
"bytesRead".</div>
<div><br></div>
<div>What specifically was causing you problems with the original
code? Can you describe a specific sequence of incoming RTSP
requests that was causing problems??</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>