-
Raphael Kubo da Costa authored
connect(2) says stream sockets may only succeed to connect once. This means if the call to sock.connect() fails it will continue failing for the entirety of the wait loop, and we will fail to wait for a port to bind even when it eventually becomes available. Make sure we create a new socket every time we are about to try to connect to it. Change-Id: I16d7dbea3590c5bf7f7240bdefcc5ec0bcd1edb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1528291 Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
b45f6428