« Return to Thread: [ruby-core:24058] [Bug #1696] http downloads are unuseably slow

[ruby-core:24081] Re: [Bug #1696] http downloads are unuseably slow

by Tanaka Akira-3 :: Rate this Message:

Reply to Author | View in Thread

In article <4a464441bf3f7_13bd3907d016634@...>,
  Steven Hartland <redmine@...> 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.
--
Tanaka Akira

 « Return to Thread: [ruby-core:24058] [Bug #1696] http downloads are unuseably slow