RUBY-429 rescue additional socket and IO errors

This commit is contained in:
Tyler Brock 2012-04-04 15:10:58 -04:00
parent f58b56a4ee
commit 7337a06311
1 changed files with 2 additions and 1 deletions

View File

@ -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