WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
267868
Check curl version for HTTP/3 support
https://bugs.webkit.org/show_bug.cgi?id=267868
Summary
Check curl version for HTTP/3 support
Don Olmstead
Reported
2024-01-22 11:02:16 PST
Not experimental since 8.5.0
Attachments
Add attachment
proposed patch, testcase, etc.
Don Olmstead
Comment 1
2024-01-22 11:15:02 PST
Pull request:
https://github.com/WebKit/WebKit/pull/23056
EWS
Comment 2
2024-01-25 11:09:23 PST
Committed
273520@main
(561efe11068f): <
https://commits.webkit.org/273520@main
> Reviewed commits have been landed. Closing PR #23056 and removing active labels.
WebKit Commit Bot
Comment 3
2024-01-25 19:21:36 PST
Re-opened since this is blocked by
bug 268138
Radar WebKit Bug Importer
Comment 4
2024-01-29 11:03:38 PST
<
rdar://problem/121868520
>
Kenji Shukuwa
Comment 5
2025-05-22 22:41:44 PDT
The reason why LayoutTests failed, as reported in
bug 268138
, was because the CURLE_RECV_ERROR(56) error was returned when there was a certificate error . Before this patch , the CURLE_PEER_FAILED_VERIFICATION(60) error was returned when there was a certificate error, and resources could be obtained after the server trust evaluation process. However, because the CURLE_RECV_ERROR error was returned, this process was not performed, and resources could not be obtained. The reason why CURLE_PEER_FAILED_VERIFICATION was returned was because CURLOPT_HTTP_VERSION was set to CURL_HTTP_VERSION_3. Normally, the decision on whether to use HTTP/3 communication should be based on the alt-svc settings, but when CURL_HTTP_VERSION_3 is set, the initial communication will be performed in HTTP/3 regardless of the alt-svc settings. The curl uses ngtcp2 internally when performing HTTP/3 communication, but ngtcp2 functions continue to be used even after falling down to HTTP/2 communication. In this case, an error occurs in the ngtcp2 function during processing after detecting a certificate error, which causes the CURLE_RECV_ERROR error to be returned. To follow the Alt-Svc settings, set CURLOPT_HTTP_VERSION to CURL_HTTP_VERSION_NONE. This will allow curl to communicate with the appropriate HTTP version based on information from ALPN, alt-svc, etc.
Kenji Shukuwa
Comment 6
2025-05-22 22:43:31 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/45817
Kenji Shukuwa
Comment 7
2025-05-22 23:09:10 PDT
Don, could you please assign a reviewer?
EWS
Comment 8
2025-05-27 19:09:53 PDT
Committed
295483@main
(be42ad9a0ba6): <
https://commits.webkit.org/295483@main
> Reviewed commits have been landed. Closing PR #45817 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug