This change is necessary to avoid errors on slow hosts. Also slightly reworked argument passing to the recvall() function.