Merge pull request #81 from ankane/master

RUBY-353 Fixed system stack error on :connect_timeout option
This commit is contained in:
Kyle Banker 2012-01-06 06:49:56 -08:00
commit bc872b61fd
1 changed files with 2 additions and 0 deletions

View File

@ -604,6 +604,8 @@ module Mongo
def check_is_master(node)
begin
host, port = *node
socket = nil
config = nil
if @connect_timeout
Mongo::TimeoutHandler.timeout(@connect_timeout, OperationTimeout) do