summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-05-05 21:53:45 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-05-05 21:53:45 (GMT)
commit24237ea8a128d145d00397bd79eba06db471bcdb (patch)
tree53599096583a1312a4366bbd3aa14b1b2746dfd9 /Python
parent98fd03637f35fd92c887e9aa6031d8a8f1d8e6a4 (diff)
downloadcpython-24237ea8a128d145d00397bd79eba06db471bcdb.zip
cpython-24237ea8a128d145d00397bd79eba06db471bcdb.tar.gz
cpython-24237ea8a128d145d00397bd79eba06db471bcdb.tar.bz2
Fix a bug introduced in r62627. see issue2760 and issue2632.
An assertion in readline() would fail as data was already in the internal buffer even though the socket was in unbuffered read mode. That case is now handled. More importantly, read() has been fixed to not over-recv() and leave newly recv()d data in the _fileobject buffer. The max() vs min() issue in read() is now gone. Neither was correct. On bounded reads, always ask recv() for the exact amount of data we still need. Candidate for backporting to release25-maint along with r62627.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions