about summary refs log tree commit homepage
path: root/test/benchmark/big_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-05-03 15:05:30 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-03 15:09:46 -0700
commit64166e69ff4991f95192f16cb1d8cb8807fab21a (patch)
tree41b06b460256a61f4b9cfdb0b3094c0e1dee97a2 /test/benchmark/big_request.rb
parent018f827ebdc1668d2262ef1337386f896379e0f6 (diff)
downloadunicorn-64166e69ff4991f95192f16cb1d8cb8807fab21a.tar.gz
* explain unicorn_peeraddr
* support #readpartial in request
* support #write in responses
Diffstat (limited to 'test/benchmark/big_request.rb')
-rw-r--r--test/benchmark/big_request.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/benchmark/big_request.rb b/test/benchmark/big_request.rb
index 5f2111b..ee42d41 100644
--- a/test/benchmark/big_request.rb
+++ b/test/benchmark/big_request.rb
@@ -8,7 +8,11 @@ length = bs * count
 slice = (' ' * bs).freeze
 
 big = Tempfile.new('')
-def big.unicorn_peeraddr; '127.0.0.1'; end
+
+def big.unicorn_peeraddr # old versions of Unicorn used this
+  '127.0.0.1'
+end
+
 big.syswrite(
 "PUT /hello/world/puturl?abcd=efg&hi#anchor HTTP/1.0\r\n" \
 "Host: localhost\r\n" \