[Twisted-Python] file descriptor cannot be a negative integer (-1)

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Fri Sep 17 18:28:26 EDT 2010

On 09:50 pm, ruslan.usifov at gmail.com wrote:
>I have use kqreactor from this branch
>http://twistedmatrix.com/trac/browser/branches/kqreactor-1918-3/. In 
>follow code we connect to unix socket.
>Sometimes we got the error: "file descriptor cannot be a negative 
>(-1)" what does this mean? I haven't any ideas
>l_client = protocol.ClientCreator(reactor, Proxy);
>PS: my uname -a is:
>     FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #2: Wed Jan 13 
>UTC 2010     root at DTG1383:/usr/obj/usr/src/sys/Z-AMD64  amd64

It means there's a bug somewhere in your code or in the reactor.  If you 
can reproduce the problem with a simple example, it might be useful in 
fixing the problem.


More information about the Twisted-Python mailing list