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.
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|1d 19h 17m||1||Andrew Stitcher||19/Jun/13 16:34|
|80d 22h 10m||1||Justin Ross||08/Sep/13 14:45|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||0.23 [ 12324273 ]|
|Resolution||Fixed [ 1 ]|