• Gregory P. Smith's avatar
    This should fix issue2632. A long description of the two competing · f8cc6401
    Gregory P. Smith yazdı
    problems is in the bug report (one old, one recently introduced trying
    to fix the old one).  In short:
    
    buffer data during socket._fileobject.read() and readlines() within a
    cStringIO object instead of a [] of str()s returned from the recv()
    call.
    
    This prevents excessive memory use due to the size parameter being
    passed to recv() being grossly larger than the actual size of the data
    returned *and* prevents excessive cpu usage due to looping in python
    calling recv() with a very tiny size value if min() is used as the
    previous memory-use bug "fix" did.
    
    It also documents what the socket._fileobject._rbufsize member is
    actually used for.
    
    This is a candidate for back porting to 2.5.
    f8cc6401
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...