Github user gaohoward commented on the pull request:
https://github.com/apache/activemq-artemis/pull/132#issuecomment-134435057
yeah there is going to be a problem if acceptor is using 0.0.0.0. In that
case we probably need a way to find the port which the client is connected to.
We cache the brokerInfo but not the brokerURL, you can see we do send a
brokerInfo based on connection request, see method
ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection
connection)
I think what's need to to is to pass a copy of brokerInfo to the new
connection.
Thanks
Howard
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---