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 <firstname.lastname@example.org>
Commit-Queue: Alex Deymo <email@example.com>
Tested-by: Alex Deymo <firstname.lastname@example.org>
9 files changed