Closed Bug 1851038 Opened 1 year ago Closed 1 year ago

Make sure to release adb reverse ports after test is done

Categories

(Core :: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files)

(In reply to Valentin Gosu [:valentin] (he/him) from comment bug 1411358 comment 618)

We do clean up in the code I linked above, but while looking into this I found 1, 2 places that don't clean up after themselves.

It became apparent that the custom NodeServer handler in
test_http_server_timing.js wasn't releasing forwarded adb ports.
Since NodeHTTPServer already does this correctly, we should use NodeHTTPServer
in test_http_server_timing.js instead of reimplementing this functionality.

It became apparent that TRRServer was forwarding adb ports but not releasing
them at the end of the test, possibly leading to port exhaustion when running
Android tests.
Since NodeHTTP2Server already implements this correctly, it makes sense to
simply make TRRServer extend NodeHTTP2Server and just implement the bits that
are different.

Depends on D187259

Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f8d16cfb08cb Use NodeHTTPServer in test_http_server_timing.js instead of reimplementing it r=necko-reviewers,kershaw https://hg.mozilla.org/integration/autoland/rev/6cd04b17df61 Make TRRServer extend NodeHTTP2Server r=necko-reviewers,kershaw
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: