Re: [Twisted-Python] getpeername from verify callback

2012-10-18 Thread Adi Roiban
On 19 October 2012 09:28, Glyph wrote: > On Oct 18, 2012, at 9:41 PM, Nathan Mower wrote: > >> The following sample code worked until Twisted began to prefer memory BIOs >> over socket BIOs. Now it produces this error... >> >> exceptions.AttributeError: 'NoneType' object has no attribute 'getpe

Re: [Twisted-Python] getpeername from verify callback

2012-10-18 Thread Glyph
On Oct 18, 2012, at 11:36 PM, Adi Roiban wrote: > On 19 October 2012 07:41, Nathan Mower wrote: >> The following sample code worked until Twisted began to prefer memory BIOs >> over socket BIOs. Now it produces this error... >> >> exceptions.AttributeError: 'NoneType' object has no attribute

Re: [Twisted-Python] getpeername from verify callback

2012-10-18 Thread Adi Roiban
On 19 October 2012 07:41, Nathan Mower wrote: > The following sample code worked until Twisted began to prefer memory BIOs > over socket BIOs. Now it produces this error... > > exceptions.AttributeError: 'NoneType' object has no attribute 'getpeername' > > ...on line 9 where getpeername() is cal

Re: [Twisted-Python] getpeername from verify callback

2012-10-18 Thread Glyph
On Oct 18, 2012, at 9:41 PM, Nathan Mower wrote: > The following sample code worked until Twisted began to prefer memory BIOs > over socket BIOs. Now it produces this error... > > exceptions.AttributeError: 'NoneType' object has no attribute 'getpeername' > > ...on line 9 where getpeername()

[Twisted-Python] getpeername from verify callback

2012-10-18 Thread Nathan Mower
The following sample code worked until Twisted began to prefer memory BIOs over socket BIOs. Now it produces this error... exceptions.AttributeError: 'NoneType' object has no attribute 'getpeername' ...on line 9 where getpeername() is called by the verify() callback. Is there any way to obtain

Re: [Twisted-Python] how to daemonize twisted...and detatch from shell process

2012-10-18 Thread David Strauss
I also recommend looking at systemd and Upstart, even in combination with twistd. Twisted's twistd will daemonize the process, but it won't give you named services and a clean environment. -- David Strauss | da...@davidstrauss.net ___ Twisted-Python