lib/connection/utils.rb in stomp-1.2.14 vs lib/connection/utils.rb in stomp-1.2.16

- old
+ new

@@ -180,20 +180,21 @@ :hbser => false, :stompconn => false, :max_hbread_fails => 0, :max_hbrlck_fails => 0, :fast_hbs_adjust => 0.0, + :connread_timeout => 0, } res_params = default_params.merge(params) if res_params[:dmh] res_params = _expand_hosts(res_params) end return res_params end - # change_host selects the next host for retires. + # change_host selects the next host for retries. def change_host @parameters[:hosts] = @parameters[:hosts].sort_by { rand } if @parameters[:randomize] # Set first as master and send it to the end of array current_host = @parameters[:hosts].shift @@ -202,10 +203,9 @@ @ssl = current_host[:ssl] @host = current_host[:host] @port = current_host[:port] || Connection::default_port(@ssl) @login = current_host[:login] || "" @passcode = current_host[:passcode] || "" - end # max_reconnect_attempts? returns nil or the number of maximum reconnect # attempts. def max_reconnect_attempts?