RUBY-429 rescue additional socket and IO errors
This commit is contained in:
parent
f58b56a4ee
commit
7337a06311
@ -65,7 +65,8 @@ module Mongo
|
|||||||
@socket.readpartial(maxlen, buffer)
|
@socket.readpartial(maxlen, buffer)
|
||||||
rescue EOFError
|
rescue EOFError
|
||||||
return ConnectionError
|
return ConnectionError
|
||||||
rescue Errno::ECONNRESET
|
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL, Errno::EBADF, Errno::EINTR,
|
||||||
|
Errno::EIO, Errno::ENOTCONN, SocketError
|
||||||
raise ConnectionFailure
|
raise ConnectionFailure
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user