Not logged inOpenClonk Forum
Up Topic HTTP Content-Length

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Günther
While I'm at it,
if (!iBytesToRead) ++iBytesToRead;
appears to be made obsolete by clonk.de SVN revision 10234 ("proper buffer management in C4NetIOTCP::Peer. Should be faster allaround.") If we exit the loop after a full read (iBytesRead == iBytesToRead) we could even save the recv call when the connection was closed, as the loop is only entered when data is ready to be read or the socket closed.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill