On Mon, Apr 21, 2008 at 8:10 PM, Gregory P. Smith <[EMAIL PROTECTED]> wrote:
> > > > The 64K hunch is wrong. The system limit can be found using > getsockopt(...SO_RCVBUF...). It can easily be (and often is) set to many > megabytes either at a system default level or on a per socket level by the > user using setsockopt. When the system default is that large, limiting by > the system limit would not help the 10mb read case. > but it would help in the 100mb read case. > > Even smaller allocations like 64K cause problems as mentioned in issue > 1092502 linking to this twisted http://twistedmatrix.com/trac/ticket/1079bug. > twisted's solution was to make the string object returned by a recv as > short lived as possible by copying it into a StringIO. We could do the same > in _fileobject.read() and readline(). > this approach look reasonable to me. - Ralf
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com