Handle exception ETIMEDOUT in SMTP server (#384)
This commit is contained in:
committed by
Charlie Smurthwaite
parent
93434bbb7e
commit
83ada69662
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user