From: James Gray Date: 2009-06-30T06:12:23+09:00 Subject: [ruby-core:24085] Re: [Bug #1696] http downloads are unuseably slow On Jun 29, 2009, at 1:38 PM, Eero Saynatkari wrote: > Excerpts from Tanaka Akira's message of Mon Jun 29 21:17:58 +0300 > 2009: >> In article <4a464441bf3f7_13bd3907d016634@redmine.ruby-lang.org>, >> Steven Hartland writes: >> >>> This I've tracked down to the net/protocol module and the >>> Net::BufferIO::rbuf_fill method which is using a timeout block to >>> wrap the @io.sysread(1024) call. This is clearly an extremely bad >>> way to do this, totally crippling the performance. >> >> There is a reson to use timeout(). It is used to fix >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=265429 >> >> Before the fix, IO.select was used in rbuf_fill. > > On the face of it, using timeout does not seem like the > optimal fix to the problem...speaking of, can anyone > reproduce this issue currently, or has it gotten fixed > otherwise in the 5 intervening years? Well, this definitely sounds like the kind of thing I am seeing. James Edward Gray II