[Twisted-Python] Queries about connecting to a XML-RPC server over IPv6

Glyph glyph at twistedmatrix.com
Mon Dec 9 06:28:55 MST 2013


On Dec 9, 2013, at 1:33 AM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:

> The IPv6 support in Twisted is very new - check your version even *has* it - and it's still a work in progress. You might find that you can't do this. I'd have to read the code to be sure and I don't have time right now, but my guess is that t.w.xmlrpc isn't "getaddrinfo"-ised so won't connect to IPv6 names.
> 
> If your version of Twisted supports it, you could probably work around this by sub-classing Proxy and calling reactor.connectTCP('::1', 8000) to attach the protocol yourself.

Worth noting, of course, that Proxy not working with IPv6 is a bug.  Please file it as such.  (It seems like HostnameEndpoint could totally do the trick...)

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20131209/69daef50/attachment.html>


More information about the Twisted-Python mailing list