Don't assume we can bind to a random port.

Instead, let the kernel choose a free port for us and use
getsockname to find out what it is.

This should help avoid flakiness caused by EADDRINUSE.

Change-Id: Ic5d8e3e24ea6e975fb9217291e9c8b758603f96c
1 file changed
tree: 23a480b1bbe8292cce4c8603440b50dfb524cdfe
  1. net/