diff --git a/lib/puma/client.rb b/lib/puma/client.rb index 1b7c0ea018..d553bbd6a1 100644 --- a/lib/puma/client.rb +++ b/lib/puma/client.rb @@ -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