mirror of
https://github.com/curl/curl.git
synced 2026-08-09 19:04:19 +03:00
url: connection reuse on h3 connections
- When searching for existing connections, interpret the default CURL_HTTP_VERSION_2TLS as "anything goes". This will allow us to reuse HTTP/3 connections better - add 'http/1.1' as allowed protocol identifier in Alt-Svc files - add test_02_0[345] for testing protocol selection on provided alt-svc files Fixes #14890 Reported-by: MacKenzie Closes #14966
This commit is contained in:
parent
c91c37b6e8
commit
433d73033e
3 changed files with 105 additions and 18 deletions
|
|
@ -64,6 +64,8 @@ static enum alpnid alpn2alpnid(char *name)
|
|||
return ALPN_h2;
|
||||
if(strcasecompare(name, H3VERSION))
|
||||
return ALPN_h3;
|
||||
if(strcasecompare(name, "http/1.1"))
|
||||
return ALPN_h1;
|
||||
return ALPN_none; /* unknown, probably rubbish input */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue