asynchat - operation could not complete w/ blocking

Andreas R. andreas at nospam.openrts.org
Wed Mar 8 02:57:53 EST 2006


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 buffering with asynchat, use
> "push" (or "push_with_producer").

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.

- Andreas



More information about the Python-list mailing list