[close #2371] Don't report EOFError

This commit is contained in:
schneems 2020-09-24 16:13:20 -05:00
parent 93bb1d0174
commit 5eff05fe6b
1 changed files with 3 additions and 1 deletions

View File

@ -155,7 +155,9 @@ module Puma
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