Skip to content

Commit a5b5d5e

Browse files
committed
RUBY-429 tweaks to rescued errors
1 parent 58f0ee8 commit a5b5d5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/util/tcp_socket.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def read(maxlen, buffer)
6565
@socket.readpartial(maxlen, buffer)
6666
rescue EOFError
6767
return ConnectionError
68-
rescue Errno::ECONNRESET, Errno::ENOTCONN, Errno::EBADF
68+
rescue Errno::ENOTCONN, Errno::EBADF, Errno::ECONNRESET, Errno::EPIPE
6969
raise ConnectionFailure
70-
rescue Errno::EINTR, Errno::EIO, Errno::EPIPE
70+
rescue Errno::EINTR, Errno::EIO
7171
raise OperationFailure
7272
end
7373
else

0 commit comments

Comments
 (0)