[Web-SIG] Could WSGI handle Asynchronous response?
Etienne Robillard
robillard.etienne at gmail.com
Mon Jul 28 21:52:17 CEST 2008
On Mon, 18 Feb 2008 04:23:38 -0800 (PST)
est <electronixtar at gmail.com> wrote:
> I am writing a small 'comet'-like app using flup, something like
> this:
>
> def myapp(environ, start_response):
> start_response('200 OK', [('Content-Type', 'text/plain')])
> return ['Flup works!\n'] <-------------Could this be part
> of response output? Could I time.sleep() for a while then write other
> outputs?
>
>
> if __name__ == '__main__':
> from flup.server.fcgi import WSGIServer
> WSGIServer(myapp, multiplexed=True, bindAddress=('0.0.0.0',
> 8888)).run()
>
>
> So is WSGI really synchronous? How can I handle asynchronous outputs
> with flup/WSGI ?
maybe start by looking here: http://twistedmatrix.com/trac/browser/trunk/twisted/web2/wsgi.py
Regards,
Etienne
More information about the Web-SIG
mailing list