Quote Originally Posted by AmirH View Post
ok, this is the meaning of readAll(), I did not understand at first, I though it copied the content and not tranfer it.
This would prevent the socket from receiving more data than fits into one third (original data, the copy, the variable you assign the result of readAll() to) of the machine's virtual memory.