there's a socket.sendall(), so why no socket.recvall()?

Roger Binns rogerb at rogerbinns.com
Sun Jan 16 01:51:00 EST 2005


>>>> there's a socket.sendall(), so why no socket.recvall()?

BTW socket.sendall() doesn't actually work for large amounts
of data on Windows 2000 and probably other versions of
Windows as well.  Eg if you supply a 1MB buffer then you get
an exception based on some internal Windows error code.
I haven't experimented on Unix yet to see if it has the same
issue.

The workaround is to write a wrapper that really does send
everything.

Roger 





More information about the Python-list mailing list