[Twisted-Python] Non-blocking webserver - what am I doing wrong?

Pavel Pergamenshchik pp64 at codelock.com
Tue Apr 26 18:36:12 EDT 2005


On Mon, 25 Apr 2005 17:21:54 -0400
Dave Gray <dgray at omniti.com> wrote:

> I'm trying to get a simple webserver working using twisted. It works, to 
> some extent, serves pages and all, but it blocks until the 
> reactor.callLater(...) is done... what am I doing wrong?
> 
> Dave
> 
> # CODE

...snip...

>          d = defer.Deferred()
>          d.addCallback(requestDebug)
>          d.callback(request)

...snip...

Note that this code is more or less equivalent to
           requestDebug(request)




More information about the Twisted-Python mailing list