[Twisted-Python] self.socket.accept() in doRead() in tcp.py has (11, 'Resource temporarily unavailable') error

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Aug 18 05:56:53 MDT 2009


On 11:43 am, gabriel.rossetti at arimaz.com wrote:
>Hello everyone,
>
>I have been trying to debug a Twisted app of mine and I noticed that in 
>tcp.py in
>doRead() self.socket.accept() raises the following exception : error: 
>(11, 'Resource temporarily unavailable'). It seems to just smother the 
>exception though. I read in the python doc that sockets raise that 
>exception if the call would block, when the socket is configuered in 
>non-blocking mode. It seems to do that because the data it receives is 
>too big, how am I supposed to resolve this?

This exception is normal, correct, and harmless.  Whatever in your app 
is not behaving as you would like, it is almost certainly not related to 
this exception.

socket.accept() how new connections are accepted.  This is not related 
to how data is read from connections.

Jean-Paul




More information about the Twisted-Python mailing list