lib/bunny/session.rb in bunny-2.7.1 vs lib/bunny/session.rb in bunny-2.7.2

- old
+ new

@@ -87,12 +87,12 @@ # @return [Logger] attr_reader :logger # @return [Integer] Timeout for blocking protocol operations (queue.declare, queue.bind, etc), in milliseconds. Default is 15000. attr_reader :continuation_timeout attr_reader :network_recovery_interval + attr_accessor :socket_configurator - # @param [String, Hash] connection_string_or_opts Connection string or a hash of connection options # @param [Hash] optz Extra options not related to connection # # @option connection_string_or_opts [String] :host ("127.0.0.1") Hostname or IP address to connect to # @option connection_string_or_opts [Array<String>] :hosts (["127.0.0.1"]) list of hostname or IP addresses to select hostname from when connecting @@ -1255,10 +1255,10 @@ 0 == val || val.nil? end # @private def negotiate_value(client_value, server_value) - return server_value if client_value == :server + return server_value if [:server, "server"].include?(client_value) if client_value == 0 || server_value == 0 [client_value, server_value].max else [client_value, server_value].min