DescriptionAdd device port unmapping support to forwarder2.
There used not to be any way to unmap a previously forwarded port. Since
the host and device forwarder processes are kept alive during a whole test
suite, both the host and device ended up with an unnecessarily high amount of
unused open sockets. That is source of flakiness (e.g. too many opened file
descriptors).
This adds an UnmapDevicePort() method to the Python Forwarder wrapper class and
modifies the native forwarder2 to accept a negative port on the command line.
When a negative port is provided, the host forwarder tries to unmap that port
(that was mapped previously).
BUG=229685, 239014
R=bulach@chromium.org, digit@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200257
Patch Set 1 : #Patch Set 2 : Fix typo #
Total comments: 2
Patch Set 3 : Simplify changes in Socket #
Total comments: 4
Patch Set 4 : Address David's comments #Messages
Total messages: 6 (0 generated)
|