Author btubbs
Recipients btubbs
Date 2012-10-13.21:00:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350162020.69.0.603099084932.issue16220@psf.upfronthosting.co.za>
In-reply-to
Content
When a WSGI application returns an iterable that has a .close() method, the server is supposed to call that method once the request has finished.  The wsgiref server does not do this when a client disconnects from a streaming response.

The attached script allows testing the .close() behavior of various wsgi servers (wsgiref, cherrypy, gevent, werkzeug, and gunicorn).  wsgiref is the only one of the tested implementations that does not call .close().
History
Date User Action Args
2012-10-13 21:00:20btubbssetrecipients: + btubbs
2012-10-13 21:00:20btubbssetmessageid: <1350162020.69.0.603099084932.issue16220@psf.upfronthosting.co.za>
2012-10-13 21:00:20btubbslinkissue16220 messages
2012-10-13 21:00:20btubbscreate