about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-11-10 21:13:11 +0000
committerEric Wong <e@80x24.org>2013-11-10 21:15:48 +0000
commit0493633a8db24660582fbdbf163f5e76b5aab6b1 (patch)
treea7c7a0e8605cf4621a4b6f6230054fcea70685f2 /test
parentc16a3d724ddf593d31502efd5106998a2bae2c7f (diff)
downloadyahns-0493633a8db24660582fbdbf163f5e76b5aab6b1.tar.gz
ref: https://github.com/rubinius/rubinius/issues/2772
Diffstat (limited to 'test')
-rw-r--r--test/test_extras_try_gzip_static.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_extras_try_gzip_static.rb b/test/test_extras_try_gzip_static.rb
index 416af71..77eaf33 100644
--- a/test/test_extras_try_gzip_static.rb
+++ b/test/test_extras_try_gzip_static.rb
@@ -53,7 +53,8 @@ class TestExtrasTryGzipStatic < Testcase
       c = get_tcp_client(host, port)
       begin
         c.write "#{req}\r\n\r\n"
-        head, body = c.read.split(/\r\n\r\n/)
+        buf = c.read(666000)
+        head, body = buf.split(/\r\n\r\n/)
         blk.call(head)
         body
       ensure