<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 10, 2011, at 5:31 AM, akira wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Bitstream Vera Sans Mono'; 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; ">Reusing a local port via SO_REUSEADDR or better yet reusing a tcp<br>connection via HTTP keep-alive aren't available with twisted as I<br>understand it.<br></span></span></blockquote></div><br><div>Reusing a local connection-oriented port with SO_REUSEADDR is potentially a bad idea; there's a reason that your TCP stack gives you this error. &nbsp;That option is practically only for listening ports.</div><div><br></div><div>Keep-alive is a work in progress, previously mentioned in this thread: &lt;<a href="http://twistedmatrix.com/trac/ticket/3420">http://twistedmatrix.com/trac/ticket/3420</a>&gt;.</div><div><br></div></body></html>