[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

Jason Madden report at bugs.python.org
Sun Apr 3 16:24:21 EDT 2016


Jason Madden added the comment:

Django uses a `wsgiref.simple_server` to serve requests, which in turn uses `socketserver.StreamRequestHandler` to implement its `WSGIRequestHandler`. That base class explicitly turns off buffering for writes (`wbufsize = 0` is the class default which gets passed to `socket.makefile`). So that explains how there's no `BufferedWriter` wrapped around the `SocketIO` instance.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24291>
_______________________________________


More information about the Python-bugs-list mailing list