[Live-devel] Q: incomingRequestHandler1, bytesRead == fRequestSpaceRemaining

Ross Finlayson finlayson at live555.com
Wed Dec 5 16:35:06 PST 2007


>In RTSPServer::incomingRequestHandler1() conditional "if (bytesRead 
><= 0 || (unsigned)bytesRead >= fRequestSpaceRemaining)"
>Q:  Is it really a failure if the number of bytes read == the amount 
>of space available?

Yes, because there would then be no room for us to add a trailing 
'\0' character (which we use for parsing).
-- 

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/20071205/d08e6266/attachment.html 


More information about the live-devel mailing list