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/
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to