[Twisted-Python] asynchronous response

Kevin Mcintyre kebin70 at gmail.com
Thu Dec 17 00:58:00 MST 2015


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 <kebin70 at gmail.com> 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 2 requests could be served simultaneously, but when I
> fire off 2 requests the first received gets it's response after 5 seconds,
> while the second response takes 10 seconds.
>
> I think I understand what's happening, but I don't know why...and I would
> love an example where the subsequent request doesn't have to wait for the
> first request to finish.
>
> Thanks,
> Kevin
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20151216/37247988/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multirequest_overkill.py
Type: text/x-python
Size: 2403 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20151216/37247988/attachment-0002.py>


More information about the Twisted-Python mailing list