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

2005-01-16 Thread Irmen de Jong
Roger Binns wrote: 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 er

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

2005-01-16 Thread Roger Binns
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 ha

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

2005-01-15 Thread Irmen de Jong
Irmen de Jong wrote: Subject says it all; there's a socket.sendall(), so why no socket.recvall()? [...] I may even write a patch for socketmodule.c right now :-D And here it is: the missing socket.recvall(). http://www.python.org/sf/1103213 --Irmen -- http://mail.python.org/mailman/listinfo/python-

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

2005-01-08 Thread Irmen de Jong
Robert Brewer wrote: Irmen de Jong wrote: Subject says it all; there's a socket.sendall(), so why no socket.recvall()? [...] If you call .makefile() and then .read() the _fileobject, you get the same behavior (only better). Adding recvall would just duplicate that, I think. But that's desirable IM

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

2005-01-08 Thread Robert Brewer
Irmen de Jong wrote: > Subject says it all; > there's a socket.sendall(), so why no socket.recvall()? Good question! Something like: # Receive reply. data = [] while True: try: chunk = conn.recv(8192) except Exception, x: