RUBY-429 tweaks to rescued errors

This commit is contained in:
Tyler Brock 2012-04-04 20:36:42 -04:00
parent 58f0ee8fff
commit a5b5d5e3e3
1 changed files with 2 additions and 2 deletions

View File

@ -65,9 +65,9 @@ module Mongo
@socket.readpartial(maxlen, buffer)
rescue EOFError
return ConnectionError
rescue Errno::ECONNRESET, Errno::ENOTCONN, Errno::EBADF
rescue Errno::ENOTCONN, Errno::EBADF, Errno::ECONNRESET, Errno::EPIPE
raise ConnectionFailure
rescue Errno::EINTR, Errno::EIO, Errno::EPIPE
rescue Errno::EINTR, Errno::EIO
raise OperationFailure
end
else