about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb6
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.