<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 16, 2010, at 11:22 AM, Stefano Debenedetti wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">Does this sound familiar in any way? Any suggestions off top of head<br>while I try to come up with a self-contained sample which is<br>reliably reproducing the issue I'm seeing happening only "sometimes<br>and quite seldom[TM]"?<br></span></span></blockquote></div><br><div>I can't recall having seen this exact issue in the past, but as you've described it it sounds like you may have discovered a Twisted bug. &nbsp;I'm looking forward to&nbsp;your example.</div><div><br></div><div>I do have a few questions:</div><div><br></div><div><ul class="MailOutline"><li>What version of Twisted are you using?</li><li>Have you tried a more recent version? Trunk?</li><li>What reactor are you using?</li><li>Have you tried a different reactor?</li><li>What platform/OS are you on? &nbsp;What version?</li><li>Have you tried a different platform?</li></ul><div><br></div></div><div>I am also curious whether changing<br><br></div><div><span class="Apple-style-span" style="font-family: monospace; ">&nbsp;&nbsp; proto.transport.loseConnection()</span><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; ">to</span></div><div><span class="Apple-style-span" style="font-family: monospace; ">&nbsp;&nbsp; reactor.callLater(0, proto.transport.loseConnection)<br></span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; ">makes any difference to your example.</span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; ">Thanks, and good luck,</span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; ">-glyph</span></div></body></html>