diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-06 19:19:47 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-09 19:52:13 -0800 |
commit | 20bea63bc9deb494a11128a4c8c9cb1aa670220f (patch) | |
tree | dc0f7e61807b16fa7e4ec630569043847f476288 /lib/unicorn/http_request.rb | |
parent | 6a240c1e7a0d4d174423d362078d45bedae07594 (diff) | |
download | unicorn-20bea63bc9deb494a11128a4c8c9cb1aa670220f.tar.gz |
I'll be removing signal handling from worker processes...
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r-- | lib/unicorn/http_request.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 61b84dd..6bbf26e 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -74,11 +74,7 @@ module Unicorn def read_body(socket, remain) buf = @buffer while remain > 0 - begin - socket.sysread(remain, buf) # short read if it's a socket - rescue Errno::EINTR, Errno::EAGAIN - retry - end + socket.sysread(remain, buf) # short read if it's a socket # ASSUME: we are writing to a disk and these writes always write the # requested amount. This is true on Linux. |