[Twisted-Python] Twisted HTTP client supporting failover for multiple A records?

Reza Lotun rlotun at gmail.com
Thu Jul 15 09:28:55 EDT 2010


> I suspect you can do this without subclassing... pass in IP address, and
> just make sure you pass correct Host header. I forget the exact API
> though.

Yeah, I was about to say, why not just call socket.gethostbyname_ex in
deferToThread and in the callback do a regular Agent.request?

Reza

-- 
Reza Lotun
mobile: +44 (0)7521 310 763
email:  rlotun at gmail.com
work:   reza at tweetdeck.com
twitter: @rlotun



More information about the Twisted-Python mailing list