add ruby http bufsize change from #2288
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Sep 2007 18:27:59 +0000 (18:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Sep 2007 18:27:59 +0000 (18:27 +0000)
SVN-Revision: 8884

lang/ruby/patches/300-http_bufsize.patch [new file with mode: 0644]

diff --git a/lang/ruby/patches/300-http_bufsize.patch b/lang/ruby/patches/300-http_bufsize.patch
new file mode 100644 (file)
index 0000000..e38ef9d
--- /dev/null
@@ -0,0 +1,15 @@
+--- 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