From: James Gray Date: 2009-06-30T06:13:13+09:00 Subject: [ruby-core:24086] Re: [Bug #1696] http downloads are unuseably slow On Jun 29, 2009, at 1:17 PM, Tanaka Akira wrote: > 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. And Timeout does get to interrupt that? James Edward Gray II