Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Fredrik Lundh
"Andreas R." wrote: >> "sendall" may be sending everything, but it does so by blocking >> until the other end acknowledges enough packets have been received to >> ensure that no data is lost. > > Yes, this is how I understood sendall. But why does it sometimes report > the error: (10035, 'The soc

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Fredrik Lundh
"Andreas R." wrote: >>> I'm using Python's asynchat module for networking. >>> When calling the sendall() method of asynchat, >>> I sometimes get the error message "the operation >>> could not complete without blocking". >> >> what sendall method ? to get proper output buffering with asynchat, u

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Fredrik Lundh
(possible duplicate; reposted due to mail server problems) "Andreas R." `wrote: >> what sendall method ? to get proper output buffering with asynchat, use > > Search for sendall here: > http://svn.gna.org/viewcvs/openrts/trunk/openrts/client/networksend.py?rev=67&view=markup > > That's what I wa

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Dennis Lee Bieber wrote: > On Wed, 08 Mar 2006 08:57:53 +0100, "Andreas R." > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > >> The problem I was having with push, is that is does not always send >> complete packages. >> >> The solution to this was to use sendall() instea

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Erik Max Francis
Andreas R. wrote: > The problem I was having with push, is that is does not always send > complete packages. > > The solution to this was to use sendall() instead, but sendall() gives > blocking error messages. The purpose of asynchat's push methods is to queue outgoing data and send it when

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." wrote: > >> I'm using Python's asynchat module for networking. >> When calling the sendall() method of asynchat, >> I sometimes get the error message "the operation >> could not complete without blocking". > > what sendall method ? to get proper output bufferi

Re: asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." wrote: > >> I'm using Python's asynchat module for networking. >> When calling the sendall() method of asynchat, >> I sometimes get the error message "the operation >> could not complete without blocking". > > what sendall method ? to get proper output bufferi

Re: asynchat - operation could not complete w/ blocking

2006-03-07 Thread Fredrik Lundh
"Andreas R." wrote: > I'm using Python's asynchat module for networking. > When calling the sendall() method of asynchat, > I sometimes get the error message "the operation > could not complete without blocking". what sendall method ? to get proper output buffering with asynchat, use "push" (or

asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Hi again, I'm using Python's asynchat module for networking. When calling the sendall() method of asynchat, I sometimes get the error message "the operation could not complete without blocking". So how do I enable blocking with synchat, or otherwise fix this error? Thanks for the help I've recei