Handle exception ETIMEDOUT in SMTP server (#384)

This commit is contained in:
Petter Helset authored and Charlie Smurthwaite committed 2017-12-05 11:21:57 +00:00
1 parent 93434bbb7e
commit 83ada69662
1 file changed
+1 -1
+1 -1
View File
@@ -142,7 +142,7 @@ module Postal
else else
buffers[io] << io.readpartial(10240) buffers[io] << io.readpartial(10240)
end end
rescue EOFError, Errno::ECONNRESET rescue EOFError, Errno::ECONNRESET, Errno::ETIMEDOUT
# Client went away # Client went away
eof = true eof = true
end end