Skip to content

Commit

Permalink
Backport puma#2121
Browse files Browse the repository at this point in the history
Co-authored-by: wjordan <will@code.org>
  • Loading branch information
MSP-Greg and wjordan committed Sep 8, 2020
1 parent fb4c3ee commit d999d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/client.rb
Expand Up @@ -153,7 +153,7 @@ def try_to_finish

begin
data = @io.read_nonblock(CHUNK_SIZE)
rescue Errno::EAGAIN
rescue IO::WaitReadable
return false
rescue SystemCallError, IOError, EOFError
raise ConnectionError, "Connection error detected during read"
Expand Down Expand Up @@ -351,7 +351,7 @@ def read_body

begin
chunk = @io.read_nonblock(want)
rescue Errno::EAGAIN
rescue IO::WaitReadable
return false
rescue SystemCallError, IOError
raise ConnectionError, "Connection error detected during read"
Expand Down

0 comments on commit d999d4b

Please sign in to comment.