Skip to content

Commit

Permalink
RUBY-429 rescue additional socket and IO errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Apr 4, 2012
1 parent f58b56a commit 7337a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mongo/util/tcp_socket.rb
Expand Up @@ -65,7 +65,8 @@ def read(maxlen, buffer)
@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
Expand Down

0 comments on commit 7337a06

Please sign in to comment.