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

Phil Mayers p.mayers at imperial.ac.uk
Mon Dec 9 08:01:16 MST 2013


On 09/12/13 14:54, Phil Mayers wrote:
> On 09/12/13 13:28, Glyph wrote:
>> On Dec 9, 2013, at 1:33 AM, Phil Mayers <p.mayers at imperial.ac.uk
>> <mailto: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.
>
> Opened #6870
>

Also #6871 for IPv6 literal URLs, but maybe the whole xmlrpc code should 
be moved to the new web.client code, and move all that logic in there?



More information about the Twisted-Python mailing list