lib/amq/client/adapter.rb in amq-client-0.7.0.alpha33 vs lib/amq/client/adapter.rb in amq-client-0.7.0.alpha34
- old
+ new
@@ -399,14 +399,14 @@
# Handles connection.start.
#
# @api plugin
# @see http://bit.ly/htCzCX AMQP 0.9.1 protocol documentation (Section 1.4.2.1.)
def handle_start(connection_start)
- @server_properties = connection_start.server_properties.dup.freeze
- @server_capabilities = @server_properties["capabilities"].dup.freeze
+ @server_properties = connection_start.server_properties
+ @server_capabilities = @server_properties["capabilities"]
- @server_authentication_mechanisms = connection_start.mechanisms.split(" ").freeze
- @server_locales = Array(connection_start.locales).freeze
+ @server_authentication_mechanisms = (connection_start.mechanisms || "").split(" ")
+ @server_locales = Array(connection_start.locales)
username = @settings[:user] || @settings[:username]
password = @settings[:pass] || @settings[:password]
# It's not clear whether we should transition to :opening state here