tzickel added the comment: Just encountered this issue as well.
It's not related to newlines, but to not supporting HTTP or persistent connections (the wsgi.input is the socket's I/O directly, and if the client serves a persistent connection, then the .read() will block forever). A simple solution is to use a saner wsgi server (gevent works nicely). Here is their implmentation of the socket I/O wrapper class (Input), and it's read/readlines functions: https://github.com/gevent/gevent/blob/a65501a1270c1763e9de336a9c3cf52081223ff6/gevent/pywsgi.py#L303 ---------- nosy: +tzickel _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21878> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com