[close #2371] Don't report EOFError
This commit is contained in:
parent
93bb1d0174
commit
5eff05fe6b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue