We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47de565 commit e99cf7eCopy full SHA for e99cf7e
lib/mongo/socket.rb
@@ -56,9 +56,9 @@ class Socket
56
#
57
# @since 2.0.0
58
def alive?
59
- sock_arr = [@socket]
+ sock_arr = [ @socket ]
60
if Kernel::select(sock_arr, nil, sock_arr, 0)
61
- !eof?
+ !@socket.eof?
62
else
63
true
64
end
@@ -75,7 +75,7 @@ def alive?
75
76
77
def close
78
- socket.close rescue true
+ @socket.close rescue true
79
80
81
lib/mongo/socket/ssl.rb
@@ -63,13 +63,6 @@ def connect!
65
66
- # Tests if this socket has reached EOF. Primarily used for liveness checks.
67
- #
68
- # @since 2.0.0
69
- def eof?
70
- @tcp_socket.eof?
71
- end
72
-
73
# Initializes a new SSL socket.
74
# @example Create the SSL socket.
0 commit comments