diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-13 10:50:00 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-13 10:50:00 -0700 |
commit | a9d022298c194edf296d6d19ff97c8b8a6ce4839 (patch) | |
tree | 56a6b501cab60bb064d7c148a175172650581317 /lib/unicorn.rb | |
parent | 60e428f204c716fd1eff3e769398c6a9eb67e072 (diff) | |
download | unicorn-a9d022298c194edf296d6d19ff97c8b8a6ce4839.tar.gz |
I'm golfing, really, but maybe we can be 0.00001% faster if we avoid naming some variables...
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index e04e45b..c1e8fcd 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -400,9 +400,7 @@ module Unicorn def process_client(client) # one syscall less than "client.nonblock = false": client.fcntl(Fcntl::F_SETFL, File::RDWR) - env = @request.read(client) - app_response = @app.call(env) - HttpResponse.write(client, app_response) + HttpResponse.write(client, @app.call(@request.read(client))) # if we get any error, try to write something back to the client # assuming we haven't closed the socket, but don't get hung up # if the socket is already closed or broken. We'll always ensure |