Re: [Twisted-Python] Writing a low-level network debugging tool

2015-12-03 Thread Jonathan Ballet
On 11/27/2015 03:39 PM, Phil Mayers wrote: On 27/11/15 14:05, Jonathan Ballet wrote: - how many tries did it require * if there were several tries, the timing of each ones Typically, application-layer code doesn't retry a DNS lookup; rather the c or other runtime will handle this, for

[Twisted-Python] yielding from within deferToThread

2015-12-03 Thread Naveen Michaud-Agrawal
I'm trying to use sqlalchemy from a twisted application (by running all blocking queries using deferToThread). Is it possible to yield from within the function running in deferToThread? For example: def threadRunQuery(engine, query): conn = engine.connect() res = conn.execute(query)

Re: [Twisted-Python] yielding from within deferToThread

2015-12-03 Thread Naveen Michaud-Agrawal
To answer my own question, it looks like i can just pass sqlalchemy's ResultProxy into deferToThread to make a blocking call to fetch the next set of results: @defer.inlineCallbacks def stream_results(): engine = sqlalchemy.create_engine(...) query = "select * from table" proxy = yield

Re: [Twisted-Python] Suggested plan for GitHub migration

2015-12-03 Thread Craig Rodrigues
On Tue, Dec 1, 2015 at 5:01 PM, Glyph Lefkowitz wrote: > > One thing that I'd love to see is a checklist that is kept up-to-date > regarding which parts of this have already happened. > > I worked with Amber and Adi and we have the checklist: https://github.com/twisted-infra/braid/blob/git-migrat

Re: [Twisted-Python] Suggested plan for GitHub migration

2015-12-03 Thread Glyph Lefkowitz
> On Dec 3, 2015, at 3:53 PM, Craig Rodrigues wrote: > > > > On Tue, Dec 1, 2015 at 5:01 PM, Glyph Lefkowitz > wrote: > > One thing that I'd love to see is a checklist that is kept up-to-date > regarding which parts of this have already happened. > > > I wo

Re: [Twisted-Python] Suggested plan for GitHub migration

2015-12-03 Thread Amber "Hawkie" Brown
> On 4 Dec 2015, at 11:07, Glyph Lefkowitz wrote: > > >> On Dec 3, 2015, at 3:53 PM, Craig Rodrigues wrote: >> >> >> >> On Tue, Dec 1, 2015 at 5:01 PM, Glyph Lefkowitz >> wrote: >> >> One thing that I'd love to see is a checklist that is kept up-to-date >> regarding which parts of this

[Twisted-Python] ssl APIs

2015-12-03 Thread meejah
I've been fooling around with the Twisted SSL APIs. I'd like to add a "loadPEM" and documentation to ssl.KeyPair; shall I open a ticket and start this, or is there a reason it doesn't have a loadPEM() like some of the other classes (or any docstrings)? It is exported as a public class in "ssl".