[Twisted-Python] Bad file descriptor traceback when deamonnizing kqueue reactorwith twistd

2009-02-06 Thread Werner Thie
Hi When I run the following command (as root) on FreeBSD all is well with twistd -rpoll -o ftp I get a running ftp server process on port 2121. Everything is also up and running (no daemonizing) after twistd -rkqueue -no ftp Not so with (daemonized) twistd -rkqueue -o ftp The process dies

Re: [Twisted-Python] Traceback on loseConnection

2009-02-06 Thread Werner Thie
Hello Jean-Paul There must be something else involved. The error is coming from twisted.web.proxy, but that code isn't used by a plain Nevow/Athena app. How is the proxy code getting involved? That remains a mistery to me, I'm certainly not doing any proxying in my source. The only thing I

[Twisted-Python] Perspective Broker and thread safe!

2009-02-06 Thread B. B.
Hello, I am relative new to twisted, though I have manage to make a simple client server solution ( using perspective broker ) that I am now try to refactor a little. The solution is now something like : Using perspective broker, clients connects to the server ( setting up a remote reference to e

[Twisted-Python] Problems with signalProcess on Windows

2009-02-06 Thread Brian Granger
Hi, [take a deep breath and try to get over how much I dislike Windows] So, I am using Twisted's external process capabilities in a cross-platform setting. Almost everything is working now in Windows. But, when I try to stop the external program (using signalProcess("INT")) that I starting using

Re: [Twisted-Python] Problems with signalProcess on Windows

2009-02-06 Thread Jean-Paul Calderone
On Fri, 6 Feb 2009 18:40:10 +, Brian Granger wrote: Hi, [take a deep breath and try to get over how much I dislike Windows] So, I am using Twisted's external process capabilities in a cross-platform setting. Almost everything is working now in Windows. But, when I try to stop the externa

[Twisted-Python] Re: Problems with signalProcess on Windows

2009-02-06 Thread Brian Granger
OK, it looks like I solved this. My external program is a python program. I was starting it without the "-u" flag to Python, which turns on unbuffered output. Adding the "-u" flag made the error go away. I found this tip in the docstrings of the _dumbwin32proc.py Twisted module. Whoever put th

Re: [Twisted-Python] Perspective Broker and thread safe!

2009-02-06 Thread Jean-Paul Calderone
On Fri, 6 Feb 2009 17:30:19 +0100, "B. B." wrote: Hello, I am relative new to twisted, though I have manage to make a simple client server solution ( using perspective broker ) that I am now try to refactor a little. The solution is now something like : Using perspective broker, clients connec

Re: [Twisted-Python] Perspective Broker and thread safe!

2009-02-06 Thread Ed Suominen
This sort of thing is exactly what I wrote AsynCluster to do. See http://foss.eepatents.com/AsynCluster. Best regards, Ed B. B. wrote: Hello, I am relative new to twisted, though I have manage to make a simple client server solution ( using perspective broker ) that I am now try to refactor a