<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 28/06/12 12:46, Martin wrote:<br>
</div>
<blockquote cite="mid:4FEC441C.4060201@webscio.net" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 26/06/12 15:12, <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>
wrote:<br>
</div>
<blockquote
cite="mid:20120626141215.2929.461329900.divmod.xquotient.21@localhost6.localdomain6"
type="cite">On 25 Jun, 12:16 pm, <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:martin@webscio.net">martin@webscio.net</a> wrote:
<br>
<blockquote type="cite">
<blockquote type="cite"> <br>
</blockquote>
No suggestions as to how I could get rid of this? :( <br>
</blockquote>
<br>
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. <br>
<br>
For future questions, if you could put together this minimal
example yourself, you'll probably find you get help more
quickly. <br>
<br>
Here's the output I see when I run the program: <br>
<br>
2012-06-26 10:07:26-0400 [-] Log opened. <br>
2012-06-26 10:07:26-0400 [-] Starting factory
<twisted.internet.protocol.ReconnectingClientFactory instance
at 0x215ffc8> <br>
2012-06-26 10:07:26-0400 [Uninitialized]
<twisted.internet.ssl.Connector instance at 0x2164128>
will retry in 2 seconds <br>
2012-06-26 10:07:26-0400 [Uninitialized] Stopping factory
<twisted.internet.protocol.ReconnectingClientFactory instance
at 0x215ffc8> <br>
2012-06-26 10:07:28-0400 [-] Starting factory
<twisted.internet.protocol.ReconnectingClientFactory instance
at 0x215ffc8> <br>
2012-06-26 10:07:28-0400 [Uninitialized]
<twisted.internet.ssl.Connector instance at 0x2164128>
will retry in 4 seconds <br>
2012-06-26 10:07:28-0400 [Uninitialized] Stopping factory
<twisted.internet.protocol.ReconnectingClientFactory instance
at 0x215ffc8> <br>
^C2012-06-26 10:07:30-0400 [-] Received SIGINT, shutting down. <br>
2012-06-26 10:07:30-0400 [-] Main loop terminated. <br>
<br>
<br>
Jean-Paul <br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Twisted-Python mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
</pre>
</blockquote>
<br>
Thanks a lot for the suggestions! I tried plugging in a fake
address (like you did) in my code and indeed I'm not getting the
deferred message at the end. So apparently it only happens when a
connection is actually established first and then lost. I'll try
to figure out a minimal example where/why it starts happening
(I'll probably know how to fix it then too.. I just thought
there'd be an easier way).<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
</pre>
</blockquote>
<br>
And found it.. the ReconnectingClientFactory was using an instance
of a LengthDelimitedStream as the protocol and that's where the
deferred was coming from.<br>
<br>
Sorry for all the nagging, I should have figured it out myself.. but
tbh getting the hang of Twisted is not so easy :)<br>
<br>
Cheers!<br>
</body>
</html>