about summary refs log tree commit homepage
path: root/test/unit/test_http_parser.rb
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2021-10-22 09:58:41 +0000
committerEric Wong <bofh@yhbt.net>2021-10-25 04:05:28 +0000
commit0af6e2d0c8fbb606db58b213ff4d0d28a1e38f4e (patch)
tree73757c5fe4da15c9ff16849452049ae7c990b808 /test/unit/test_http_parser.rb
parentd60372b5c3ba517f1015b93912824e0675a4326d (diff)
downloadunicorn-0af6e2d0c8fbb606db58b213ff4d0d28a1e38f4e.tar.gz
This should open the door for us to process chunked data faster
by modifying the buffer in-place rather than copying to a
destination buffer.
Diffstat (limited to 'test/unit/test_http_parser.rb')
-rw-r--r--test/unit/test_http_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb
index 697af44..68d48b8 100644
--- a/test/unit/test_http_parser.rb
+++ b/test/unit/test_http_parser.rb
@@ -859,7 +859,7 @@ class HttpParserTest < Test::Unit::TestCase
       # need to update this when 128-bit machines come out
       # n.b. actual struct size on 64-bit is 56 bytes + 40 bytes for RVALUE
       # Ruby <= 2.2 objspace did not count the 40-byte RVALUE, 2.3 does.
-      assert_operator n, :<=, 96
+      assert_operator n, :<=, 104 # TODO: drop to <= 96
       assert_operator n, :>, 0
     end
   rescue LoadError