Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
proton-0.1, proton-0.2
-
None
Description
When Proton-C creates an AMQP open frame it appends '<username>@' to the hostname.
This is because the pn_messenger_resolve function in messenger.c sets the HostName to the domain and not the hostname as parsed from the incoming address.
pn_connection_set_hostname(connection, host); should be used instead of
pn_connection_set_hostname(connection, domain);
Is this intended?
This might cause issues with some broker implementations that might not expect the usename to the appended to the host name.