Mark Hammond [EMAIL PROTECTED] added the comment:
FYI, #2632 is tracking a regression caused by this change.
--
nosy: +mhammond
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1092502
_
Changes by Gregory P. Smith [EMAIL PROTECTED]:
--
nosy: +gregory.p.smith
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1092502
_
___
Python-bugs-list mailing
Ralf Schmitt [EMAIL PROTECTED] added the comment:
I think this should be fixed somewhere in the c code. people calling
sock.recv which a large recv size will also trigger this error.
this fix is wrong. the fixed code reads one byte at a time.
see:
A.M. Kuchling [EMAIL PROTECTED] added the comment:
Note that _rbufsize is only set to 1 if the _fileobject's bufsize is set
to 0. So perhaps the bug is that some library is turning off buffering
when it shouldn't.
I don't see how you would fix this in the C code, other than manually
doing two
Ralf Schmitt [EMAIL PROTECTED] added the comment:
Well, I think the right thing to do is limit the maximal size to be read
inside the c function (just to make it impossible to pass around large
values). This is basically the same fix just at another place in the code.
Ralf Schmitt [EMAIL PROTECTED] added the comment:
that is it seems wrong that it uses 1 byte when a size is given, and
recv_size when size is not given.
By the way I think if you ask for 4096 bytes and the buffering is set to
2048 bytes it should still try to read the full 4096 bytes.
The
Changes by vila:
--
nosy: +vila
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1092502
_
___
Python-bugs-list mailing list
Unsubscribe:
A.M. Kuchling added the comment:
Andreas Lauer's suggested fix is correct. Applied to 2.6 trunk in rev.
61008 and to 2.5-maint in rev. 61009.
--
nosy: +akuchling
resolution: out of date - fixed
_
Tracker [EMAIL PROTECTED]
Martey Dodoo added the comment:
Just wanted to note that the good people of comp.lang.python helped me
figure out that the issue is actually
http://bugs.python.org/issue1389051, in case anyone in similar straits
ended up here.
_
Tracker [EMAIL PROTECTED]
Christian Heimes added the comment:
Probably outdated
I haven't heard or seen any such problems in the past two years.
--
nosy: +tiran
resolution: - out of date
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1092502
10 matches
Mail list logo