[issue4336] Fix performance issues in xmlrpclib

Kristján Valur Jónsson report at bugs.python.org
Fri Nov 28 11:53:31 CET 2008


Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

Guido pointed out the problem with _fileobject.readline() being 
followed by socket.recv() if readline uses read buffering.  
xmlrpclib.py was attempting to directly use the underlying socket, 
although in actual fact it never did, (since HTTPConnectio had closed 
it when it returned the response from getresponse()) Never the less, it 
is prudent to make sure that we don't attempt this.
There really should be no need to use the socket directly, a buffered 
read() call is just as efficient.

Added file: http://bugs.python.org/file12145/xmlrpc.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4336>
_______________________________________


More information about the Python-bugs-list mailing list