Merge pull request #81 from ankane/master
RUBY-353 Fixed system stack error on :connect_timeout option
This commit is contained in:
commit
bc872b61fd
|
@ -604,6 +604,8 @@ module Mongo
|
||||||
def check_is_master(node)
|
def check_is_master(node)
|
||||||
begin
|
begin
|
||||||
host, port = *node
|
host, port = *node
|
||||||
|
socket = nil
|
||||||
|
config = nil
|
||||||
|
|
||||||
if @connect_timeout
|
if @connect_timeout
|
||||||
Mongo::TimeoutHandler.timeout(@connect_timeout, OperationTimeout) do
|
Mongo::TimeoutHandler.timeout(@connect_timeout, OperationTimeout) do
|
||||||
|
|
Loading…
Reference in New Issue