From: Francis Cianfrocca Date: 2006-07-17T18:23:10+09:00 Subject: Re: net/http performance > It would be really interesting to get a record of the actual data sizes > read out from each of the calls to sysread(65536) in your modified code. > If stdout is free, maybe you could do something like: > timeout(@read_timeout) { > a << @socket.sysread(65536) > puts "sysread #{a.length} bytes" > @rbuf << a > } Yecch, sorry, obviously the second line in my code snippet should be: a = @socket.sysread(65536) -- Posted via http://www.ruby-forum.com/.