Skip to content

Commit

Permalink
[close #2371] Don't report EOFError
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Sep 24, 2020
1 parent 93bb1d0 commit 5eff05f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puma/client.rb
Expand Up @@ -155,7 +155,9 @@ def try_to_finish
data = @io.read_nonblock(CHUNK_SIZE)
rescue IO::WaitReadable
return false
rescue SystemCallError, IOError, EOFError
rescue EOFError
# Swallow it
rescue SystemCallError, IOError
raise ConnectionError, "Connection error detected during read"
end

Expand Down

0 comments on commit 5eff05f

Please sign in to comment.