Re: [Twisted-Python] Finding out the IP which it failed to connect

2012-01-22 Thread Glyph Lefkowitz
On Jan 20, 2012, at 10:02 PM, Itamar Turner-Trauring wrote: > On 01/20/2012 02:23 PM, Facundo Batista wrote: >> On Fri, Jan 20, 2012 at 4:06 PM, Kevin Horn wrote: >> >>> twisted.internet.tcp.Connector has a getDestination() method, which should >>> return an address object. >>> >>> Have you tr

Re: [Twisted-Python] Finding out the IP which it failed to connect

2012-01-21 Thread Kevin Horn
On Fri, Jan 20, 2012 at 9:02 PM, Itamar Turner-Trauring wrote: > On 01/20/2012 02:23 PM, Facundo Batista wrote: > > On Fri, Jan 20, 2012 at 4:06 PM, Kevin Horn > wrote: > > > >> twisted.internet.tcp.Connector has a getDestination() method, which > should > >> return an address object. > >> > >>

Re: [Twisted-Python] Finding out the IP which it failed to connect

2012-01-20 Thread Itamar Turner-Trauring
On 01/20/2012 02:23 PM, Facundo Batista wrote: > On Fri, Jan 20, 2012 at 4:06 PM, Kevin Horn wrote: > >> twisted.internet.tcp.Connector has a getDestination() method, which should >> return an address object. >> >> Have you tried that? (I haven't, but it looks like the right thing) > It returns th

Re: [Twisted-Python] Finding out the IP which it failed to connect

2012-01-20 Thread Facundo Batista
On Fri, Jan 20, 2012 at 4:06 PM, Kevin Horn wrote: > twisted.internet.tcp.Connector has a getDestination() method, which should > return an address object. > > Have you tried that? (I haven't, but it looks like the right thing) It returns the name used, not the IP. -- .    Facundo Blog: http:

Re: [Twisted-Python] Finding out the IP which it failed to connect

2012-01-20 Thread Kevin Horn
On Thu, Jan 19, 2012 at 8:19 AM, Facundo Batista wrote: > I have some code that uses a twisted.web.client.HTTPClientFactory. > > I've found that because some issues (firewall rules, not relevant to > the problem), I experienced failures to connect. > > More specifically, I told it to connect to on