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:25:53 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-03 15:25:53 -0700
commit895ae151c8703ebcd52becf5f2ca297d21274ef6 (patch)
tree22105114a6d201016362d4a81ff9c4d83a1ab4d9 /test/benchmark/big_request.rb
parentc88dafaa616ddd0741f929f5c5988e0c8769b15f (diff)
parent64166e69ff4991f95192f16cb1d8cb8807fab21a (diff)
downloadunicorn-895ae151c8703ebcd52becf5f2ca297d21274ef6.tar.gz
* commit 'origin/benchmark':
  benchmark/*: updates for newer versions of Unicorn
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" \