[Live-devel] Race condition bug fix

Ross Finlayson finlayson at live555.com
Wed Sep 12 18:01:09 PDT 2007


>The following fix prevents a bug when two requests are processed in 
>close proximity.

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".

What specifically was causing you problems with the original code? 
Can you describe a specific sequence of incoming RTSP requests that 
was causing problems??
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070912/ec5ba8ca/attachment.html 


More information about the live-devel mailing list