packages/lang/ruby/patches/300-http_bufsize.patch
nbd 62037333c3 add ruby http bufsize change from #2288
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8884 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-20 18:27:59 +00:00

16 lines
323 B
Diff

--- trunk/lib/net/protocol.rb 2007/03/05 00:17:38 11994
+++ trunk/lib/net/protocol.rb 2007/03/19 02:27:08 12091
@@ -128,9 +128,11 @@
private
+ BUFSIZE = 1024 * 16
+
def rbuf_fill
timeout(@read_timeout) {
- @rbuf << @io.sysread(1024)
+ @rbuf << @io.sysread(BUFSIZE)
}
end