[issue4448] should socket readline() use default_bufsize instead of _rbufsize?
Kristján Valur Jónsson
report at bugs.python.org
Mon Feb 2 16:58:13 CET 2009
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
I have looked at this for py3k.
the behaviour of HTTPResponse.fp.read() is the same, wheter fp is
buffered or not: a read() will read to EOF for HTTP/1.1, which means
blocking indefinetely. So, read() is forbidden for HTTP/1.1. For
fp.read(n), buffered IO won't attempt to read more than is on the
stream, if n bytes are avalible (SocketIO.read(N) will return a<N and
not block) so there is no reason not to use buffering.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4448>
_______________________________________
More information about the Python-bugs-list
mailing list