Bug 265402

Summary: Add IPV6 support to built-in server for run-benchmarks
Product: WebKit Reporter: hysu <hysu>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: hysu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description hysu 2023-11-27 13:42:52 PST
Follow-up bug report to: https://bugs.webkit.org/show_bug.cgi?id=259835 (Investigate the possibility of replacing twisted http server in run-benchmark with python3 http.server)

`--http-server-type builtin` only serves on IPV4 at the moment. While this should be the default, we should also be able to serve on IPV6 for harnesses that require it, and be able to automatically detect which one to use.

The simplest way to implement this would be to override `address_family = socket.AF_INET6` in SimpleHTTPRequestHandler, and to switch when an address contains colons instead of periods.
Comment 1 Radar WebKit Bug Importer 2023-11-27 13:52:24 PST
<rdar://problem/118850024>
Comment 2 james 2023-11-28 10:49:53 PST
Pull request: https://github.com/WebKit/WebKit/pull/21008
Comment 3 EWS 2023-12-01 15:33:01 PST
Committed 271412@main (ecc5b337e0f9): <https://commits.webkit.org/271412@main>

Reviewed commits have been landed. Closing PR #21008 and removing active labels.