Closed Bug 1907216 Opened 9 months ago Closed 8 months ago

[wpt-sync] Sync PR 47085 - [webdriver] Reuse the HTTP connection to the WebDriver remote end

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 47085 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/47085
Details from upstream follow.

Jonathan Lee <jonathanjlee@google.com> wrote:

[webdriver] Reuse the HTTP connection to the WebDriver remote end

HTTPWireProtocol has an internal flag _last_request_is_blocked to tell if the underlying HTTP connection is unusable and should be thrown away (see #21889). However, the transport sets the flag too early, which has the effect of transparently closing and reopening the connection before every request.

This is wasteful and appears to sometimes exhaust the host machine's usable ports in long test runs (https://crbug.com/343720396). Set the flag after it's checked to avoid unnecessary connection closures.

Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e2a3db7011d [wpt PR 47085] - [webdriver] Reuse the HTTP connection to the WebDriver remote end, a=testonly
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.