[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:
>Hello!
>
>I have use kqreactor from this branch
>http://twistedmatrix.com/trac/browser/branches/kqreactor-1918-3/. In 
>the
>follow code we connect to unix socket.
>Sometimes we got the error: "file descriptor cannot be a negative 
>integer
>(-1)" what does this mean? I haven't any ideas
>
>l_client = protocol.ClientCreator(reactor, Proxy);
>l_client.connectUNIX(self.factory.proxysock).addCallback(connectionMade).addErrback(cantConnect);
>
>PS: my uname -a is:
>     FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #2: Wed Jan 13 
>17:50:25
>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.

Jean-Paul



More information about the Twisted-Python mailing list