Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Glyph
> On Nov 22, 2014, at 01:50, Peter Westlake wrote: > > On Fri, 21 Nov 2014, at 19:26, Glyph wrote: >>> On Nov 21, 2014, at 15:13, Peter Westlake >> > wrote: >>> >>> Iammissing something obvious. The file opened by open() immediately goes >>> out of scope. AAA

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Peter Westlake
On Fri, 21 Nov 2014, at 19:26, Glyph wrote: >> On Nov 21, 2014, at 15:13, Peter Westlake >> wrote: >> >> I*am*missing something obvious. The file opened by open() immediately >> goes out of scope. AAAUGH! > > So... back to square one? Or is this the solution to your problem? I > don't entirely fo

[Twisted-Python] Twisted 14.0.2 & edns client subnet

2014-11-21 Thread Jason J. W. Williams
Has anyone used the support for EDNS option information in the 14.0.2 twisted.names client to transmit EDNS client subnet information in upstream DNS queries? Any advice/pointers would be greatly appreciated. -J ___ Twisted-Python mailing list Twisted-Py

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Glyph
> On Nov 21, 2014, at 15:13, Peter Westlake wrote: > > I am missing something obvious. The file opened by open() immediately goes > out of scope. AAAUGH! So... back to square one? Or is this the solution to your problem? I don't entirely follow how this connects... -g__

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Peter Westlake
On Fri, 21 Nov 2014, at 14:08, Peter Westlake wrote: > Found it! > > from twisted.internet.protocol import ClientFactory, Protocol, > ProcessProtocol from twisted.internet import reactor > > devnull = open('/dev/null').fileno() print devnull > > factory = ClientFactory() factory.protocol = Protoco

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Peter Westlake
Found it! from twisted.internet.protocol import ClientFactory, Protocol, ProcessProtocol from twisted.internet import reactor devnull = open('/dev/null').fileno() print devnull factory = ClientFactory() factory.protocol = Protocol reactor.connectTCP('localhost', 'http', factory) reactor.callWhe