[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

Inada Naoki report at bugs.python.org
Fri Apr 5 08:12:46 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

Additionally, _safe_read calls fp.read() multiple times to handle EINTR.
But EINTR is handled by socket module now (PEP 475).

Now the function can be very simple.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36050>
_______________________________________


More information about the Python-bugs-list mailing list