qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-4931) Broker should only listen to a single network address if "--port 0" is specified
Date Mon, 17 Jun 2013 20:18:19 GMT
Andrew Stitcher created QPID-4931:

             Summary: Broker should only listen to a single network address if "--port 0"
is specified
                 Key: QPID-4931
                 URL: https://issues.apache.org/jira/browse/QPID-4931
             Project: Qpid
          Issue Type: Improvement
          Components: C++ Broker
            Reporter: Andrew Stitcher
            Assignee: Andrew Stitcher

The C++ broker has a setting which is really only useful for testing which allows the broker
to listen to whichever port the kernel gives it. In this mode it prints the received port
on stdout for subsequent testing programs to use.

When you listen to multiple network addresses (addresses are multiple network interfaces or
multiple protocols on the same network interface - IPv4 & IPv6 for example) the broker
has to remember the port it got for the first address and then try to get the same port for
subsequent addresses.

Unfortunately there is no guarantee that the same port will actually be available on the other
addresses so the entire broker startup can fail.

In the testing environment which this is useful for you only care about the IPv4 loopback
address in any case so we have to ensure that this address is the only (or at least the first)
address used.

Because we can't guarantee getting the same port for more than one address it makes sense
to restrict "--port 0" to only listening to a single address.

I propose that if the broker detects that more than one address has been specified or is implied
by the network setup it should list to the first address and log a warning message with the
actual address listened to.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message