On 25 Jun, 12:16 pm, mar...@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
import sys
from twisted.python import log
from twisted.internet import ssl, protocol, reactor
log.startLogging(sys.stdout)
f = protocol.ReconnectingClientFactory()
f.protocol = protocol.Protocol
reactor.connectSSL('localhost', 12345, f, ssl.ClientContextFactory())
reactor.run()
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python