[Twisted-Python] buildProtocol never called

travis+ml-twisted at subspacefield.org travis+ml-twisted at subspacefield.org
Sat May 30 19:17:54 EDT 2009


First let me introduce a piece of software I have written using
Twisted: it's called dfd_keeper[1], and is a BSD/pf port of a generic
concept I invented called the dynamic firewall daemon[2].

[1] http://www.subspacefield.org/security/dfd_keeper/
[2] http://www.subspacefield.org/security/dfd/

If you like the concept, please promote the idea; I think it's neat
but there hasn't exactly been a groundswell of interest in it.

In essence, it allows you to netcat or telnet to the daemon process
and issue text-like commands that alter your firewall rules.  You can
think of it as a "shell" for the firewall, and it can do neat things
like create firewall rules that expire automatically after a period of
time and so on.

The problem I'm having is this; I upgraded my firewall from OpenBSD
4.2 or so to OpenBSD 4.5, and now I'm working with newer versions of
all the software including Twisted.

The program works fine normally, and can run in the background, but if I
invoke a daemonize() routine that turns it into a network daemon, it
refuses to serve incoming TCP connections.  Actually the TCP connection
is made, but the software never responds to it.

Specifically, my twisted.internet.protocol.Factory instance is created,
but buildProtocol is never called.

Before I dive deeply into debugging the software, I thought I'd ask if
anyone knew off the top of their head any reason why Twisted might not
act the same if it was daemonized (no controlling terminal, no
stdin/out/err, forked as a background process).

Travis H.
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | http://www.subspacefield.org/~travis/ 
If you are a spammer, please email john at subspacefield.org to get blacklisted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20090530/119e7f8b/attachment.pgp 

More information about the Twisted-Python mailing list