Handle exception ETIMEDOUT in SMTP server (#384)

This commit is contained in:
Petter Helset
2017-12-05 12:21:57 +01:00
committed by Charlie Smurthwaite
parent 93434bbb7e
commit 83ada69662

View File

@@ -142,7 +142,7 @@ module Postal
else
buffers[io] << io.readpartial(10240)
end
rescue EOFError, Errno::ECONNRESET
rescue EOFError, Errno::ECONNRESET, Errno::ETIMEDOUT
# Client went away
eof = true
end