From 7337a06311458b79b5691f0147db97dd3057b924 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Wed, 4 Apr 2012 15:10:58 -0400 Subject: [PATCH] RUBY-429 rescue additional socket and IO errors --- lib/mongo/util/tcp_socket.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mongo/util/tcp_socket.rb b/lib/mongo/util/tcp_socket.rb index b7f77ed..f312095 100644 --- a/lib/mongo/util/tcp_socket.rb +++ b/lib/mongo/util/tcp_socket.rb @@ -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