Report the port number from p2p-http-server to p2p-server.
When p2p-server launches the p2p-http-server with the --port=0 flag
it doesn't know which port is the p2p-http-server listening on. This
prevents the tests to run in parallel since the port is fixed. Also,
when the p2p-http-server is lauched, it could take some time until
it is effectivelly accepting connections.
This patch makes the p2p-http-server notify the port number it is
listening on when it is already accepting connections.
TEST=Updated and added unittests.
Reviewed-by: David Zeuthen <email@example.com>
Commit-Queue: Alex Deymo <firstname.lastname@example.org>
Tested-by: Alex Deymo <email@example.com>
9 files changed