Gregory P. Smith <[EMAIL PROTECTED]> added the comment: Twisted fixed their problem for issue 1092502 by making recv()ed data short lived by putting it into a StringIO for buffering.
I've attached a patch that does that for the socket module -and- gets rid of any possibility of doing tiny size recvs in read() which is the cause of the poor performance that this issue was filed about. My patch also documents what _rbufsize is used for (readline) and makes sane use of it with read. When viewing the change, it is best to view it side by side next to the old version rather than trying to comprehend it as a diff. I believe this really fixes both issue 1092502 while at the same time prevents introduction of a speed problem (this issue). ---------- assignee: -> gregory.p.smith nosy: +gregory.p.smith Added file: http://bugs.python.org/file10071/socket-strio-gps01.patch.txt __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2632> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com