> 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:  [email protected]
work:   [email protected]
twitter: @rlotun

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to