On Mar 10, 2011, at 5:31 AM, akira wrote:

Reusing a local port via SO_REUSEADDR or better yet reusing a tcp
connection via HTTP keep-alive aren't available with twisted as I
understand it.

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.  That option is practically only for listening ports.

Keep-alive is a work in progress, previously mentioned in this thread: <http://twistedmatrix.com/trac/ticket/3420>.