From 62037333c329e2878a6dc3b4e8893ef8ad6a6e2b Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 20 Sep 2007 18:27:59 +0000 Subject: [PATCH] add ruby http bufsize change from #2288 git-svn-id: svn://svn.openwrt.org/openwrt/packages@8884 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- lang/ruby/patches/300-http_bufsize.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lang/ruby/patches/300-http_bufsize.patch diff --git a/lang/ruby/patches/300-http_bufsize.patch b/lang/ruby/patches/300-http_bufsize.patch new file mode 100644 index 000000000..e38ef9d73 --- /dev/null +++ b/lang/ruby/patches/300-http_bufsize.patch @@ -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 + -- 2.11.0