[Twisted-Python] buildProtocol never called
exarkun at divmod.com
Sun May 31 21:49:05 EDT 2009
On Sun, 31 May 2009 15:18:50 -0500, travis+ml-twisted at subspacefield.org wrote:
>On Sat, May 30, 2009 at 08:26:40PM -0400, Jean-Paul Calderone wrote:
>> Creating the reactor at all may create a file descriptor which is necessary
>> for its operation. Closing these will very likely cause problems.
>This is all before calling any Twisted routines
It's pretty easily to unintentionally import and instantiate the default
reactor. Are you certain daemonization all happens before that?
>> Also, Twisted has daemonization features already which are known to work
>> well. ;) Why aren't you using these?
>Hadn't heard about it. Where's the documentation?
It's a feature of twistd. http://twistedmatrix.com/projects/core/documentation/howto/tap.html and http://twistedmatrix.com/projects/core/documentation/howto/application.html talk about how to structure your code so as to be able to take advantage of the features of twistd.
More information about the Twisted-Python