Re: [Twisted-Python] asynchronous response

2015-12-18 Thread Marco Giusti
On Thu, Dec 17 2015, Amber "Hawkie" Brown wrote: > > > On 17 Dec 2015, at 08:11, Kevin Mcintyre wrote: > > > > Hey - I'm confused, so nothing new :) ...but I'm running at this > > example and I'm scratching my head. > > > >

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Amber "Hawkie" Brown
> On 17 Dec 2015, at 08:11, Kevin Mcintyre wrote: > > Hey - I'm confused, so nothing new :) ...but I'm running at this example and > I'm scratching my head. > > http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html > > I would've thought

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Kevin Mcintyre
holy moly - you're right! This fool will sleep so much better...a million thanks. On Thu, Dec 17, 2015 at 12:09 AM, Amber "Hawkie" Brown < hawk...@atleastfornow.net> wrote: > > > On 17 Dec 2015, at 08:11, Kevin Mcintyre wrote: > > > > Hey - I'm confused, so nothing new :)

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Terry Jones
Hi Kevin I found it extremely beneficial to read the Twisted sources, in particular twisted.internet.defer. In your case, see https://github.com/twisted/twisted/blob/trunk/twisted/internet/task.py#L821 One nice thing that happens when you read the source is that you see quite a number of API

[Twisted-Python] asynchronous response

2015-12-16 Thread Kevin Mcintyre
Hey - I'm confused, so nothing new :) ...but I'm running at this example and I'm scratching my head. http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html I would've thought 2 requests could be served simultaneously, but when I fire off 2 requests the first

Re: [Twisted-Python] asynchronous response

2015-12-16 Thread Kevin Mcintyre
Just a follow-up with my own sanity check example. http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html My conclusion is that deferLater is a blocking method - am I wrong? On Wed, Dec 16, 2015 at 4:11 PM, Kevin Mcintyre wrote: > Hey -