[Twisted-Python] Catching error in protocol.ReconnectingClientFactory

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Jun 26 10:12:15 EDT 2012


On 25 Jun, 12:16 pm, martin at webscio.net wrote:
>>
>No suggestions as to how I could get rid of this? :(

I put together a minimal example of ReconnectingClientFactory for the 
connection refused case for you.  It's attached.  I don't see any errors 
logged.  If your program differs from this, please modify the example 
until it produces the problem.  Without this, it's very unlikely that 
anyone will be able to determine the problem or recommend a solution.

For future questions, if you could put together this minimal example 
yourself, you'll probably find you get help more quickly.

Here's the output I see when I run the program:

2012-06-26 10:07:26-0400 [-] Log opened.
2012-06-26 10:07:26-0400 [-] Starting factory 
<twisted.internet.protocol.ReconnectingClientFactory instance at 
0x215ffc8>
2012-06-26 10:07:26-0400 [Uninitialized] <twisted.internet.ssl.Connector 
instance at 0x2164128> will retry in 2 seconds
2012-06-26 10:07:26-0400 [Uninitialized] Stopping factory 
<twisted.internet.protocol.ReconnectingClientFactory instance at 
0x215ffc8>
2012-06-26 10:07:28-0400 [-] Starting factory 
<twisted.internet.protocol.ReconnectingClientFactory instance at 
0x215ffc8>
2012-06-26 10:07:28-0400 [Uninitialized] <twisted.internet.ssl.Connector 
instance at 0x2164128> will retry in 4 seconds
2012-06-26 10:07:28-0400 [Uninitialized] Stopping factory 
<twisted.internet.protocol.ReconnectingClientFactory instance at 
0x215ffc8>
^C2012-06-26 10:07:30-0400 [-] Received SIGINT, shutting down.
2012-06-26 10:07:30-0400 [-] Main loop terminated.


Jean-Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal-martin.py
Type: text/x-python
Size: 283 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20120626/af363c2f/attachment.py 


More information about the Twisted-Python mailing list