about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-09-27 22:39:02 -0700
committerEric Wong <normalperson@yhbt.net>2010-10-04 21:01:27 +0000
commitfe94d80cb37ee441762ad2a8f5c25092f8eb57a8 (patch)
tree816e906d821dae64ac8949ed6886a69b03f17064 /lib/unicorn.rb
parent5b6a97ff54d029d433b79eee1549e6f99464c48b (diff)
downloadunicorn-fe94d80cb37ee441762ad2a8f5c25092f8eb57a8.tar.gz
Rainbows! will be able to reuse this.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index c972f65..418b138 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -449,7 +449,7 @@ module Unicorn
     # Wake up every second anyways to run murder_lazy_workers
     def master_sleep(sec)
       IO.select([ SELF_PIPE[0] ], nil, nil, sec) or return
-      SELF_PIPE[0].read_nonblock(Const::CHUNK_SIZE, HttpRequest::BUF)
+      SELF_PIPE[0].read_nonblock(Const::CHUNK_SIZE)
       rescue Errno::EAGAIN, Errno::EINTR
     end
 
@@ -599,7 +599,7 @@ module Unicorn
         r = app.call(env)
       end
       # r may be frozen or const, so don't modify it
-      HttpRequest::PARSER.headers? or r = [ r[0], nil, r[2] ]
+      REQUEST.response_headers? or r = [ r[0], nil, r[2] ]
       http_response_write(client, r)
     rescue => e
       handle_error(client, e)