[issue2632] performance problem in socket._fileobject.read

2008-04-15 Thread Curt Hagenlocher
Curt Hagenlocher <[EMAIL PROTECTED]> added the comment: At least in 2.5.2, there appear to be only two places in the standard library where an arbitrary and unchecked size is passed directly to _socketobject.recv. _fileobject.read is one such place and the other is in logging/config.p

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

2008-04-14 Thread Curt Hagenlocher
Changes by Curt Hagenlocher <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10029/socket.py.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

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

2008-04-14 Thread Curt Hagenlocher
Curt Hagenlocher <[EMAIL PROTECTED]> added the comment: I've attached a much better patch as suggested by Guido Added file: http://bugs.python.org/file10032/socket.py.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.

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

2008-04-14 Thread Curt Hagenlocher
New submission from Curt Hagenlocher <[EMAIL PROTECTED]>: First reported by Ralf Schmitt. I haven't checked 2.6 or 3.0. -- components: Library (Lib) files: socket.py.diff keywords: patch messages: 65472 nosy: CurtHagenlocher severity: normal status: open title: socket._fileob