[issue2632] socket._fileobject.read(n) should ignore _rbufsize when 1

Ralf Schmitt report at bugs.python.org
Mon Apr 14 23:49:44 CEST 2008


Ralf Schmitt <schmir at gmail.com> added the comment:

One more time: the change is wrong. It should try to recv the maximum
not the minimum of size, buffer_size. If you using a buffering of 16
bytes it will otherwise call recv 256 times when you want to read 1024
bytes. this is wrong.
However there should be an upper limit, it doesn't make sense to read
10MB from socket in one recv call (imap bug).

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2632>
__________________________________


More information about the Python-bugs-list mailing list