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)
|
||||
rescue EOFError
|
||||
return ConnectionError
|
||||
rescue Errno::ECONNRESET
|
||||
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL, Errno::EBADF, Errno::EINTR,
|
||||
Errno::EIO, Errno::ENOTCONN, SocketError
|
||||
raise ConnectionFailure
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue