[wpt-sync] Sync PR 17047 - Switch to random OS port retrieval for webdriver server
Categories
(Testing :: web-platform-tests, defect, P4)
Tracking
(firefox69 fixed)
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync upstream error])
Sync web-platform-tests PR 17047 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/17047
Details from upstream follow.
George Roman <george.roman.99@gmail.com> wrote:
Switch to random OS port retrieval for webdriver server
While working on enabling wdspec tests in Servo, I noticed that although
_used_portsis protected by a lock, when running the tests in parallel, each process had the same connection port. Here I provided a full description. Basically,_used_portsis not shared between the processes (each process has a different copy of it) so the changes one process makes to it are not reflected in the other processes. Thus, we get multiple processes running WebDriver on the same port. The easiest way to solve this is to switch to random OS port retrieval by binding to port 0.
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 5•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•7 years ago
|
Description
•