New submission from Brent Tubbs: 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(). ---------- components: Library (Lib) files: sleepy_app.py messages: 172830 nosy: Brent.Tubbs priority: normal severity: normal status: open title: wsgiref does not call close() on iterable response when client versions: Python 2.7 Added file: http://bugs.python.org/file27555/sleepy_app.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16220> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com