Skip to content

HTTP/3: Enable by default? #73140

@JamesNK

Description

@JamesNK

Description

Setting System.Net.SocketsHttpHandler.Http3Support to true is still required. When will it be enabled by default?

Reproduction Steps

Create HttpClient and make an HTTP/3 request.

Expected behavior

Works.

Actual behavior

System.Net.Http.HttpRequestException
  HResult=0x80131500
  Message=Requesting HTTP version 3.0 with version policy RequestVersionExact while unable to establish HTTP/3 connection.
  Source=System.Net.Http
  StackTrace:
   at System.Net.Http.HttpConnectionPool.ThrowGetVersionException(HttpRequestMessage request, Int32 desiredVersion, Exception inner) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 426
   at System.Net.Http.HttpConnectionPool.<SendWithVersionDetectionAndRetryAsync>d__83.MoveNext() in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1033
   at System.Net.Http.DiagnosticsHandler.<SendAsyncCore>d__10.MoveNext() in /_/src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs:line 148
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.RedirectHandler.<SendAsync>d__4.MoveNext() in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:line 30
   at System.Net.Http.HttpClient.<<SendAsync>g__Core|83_0>d.MoveNext() in /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 532
   at Program.<<Main>$>d__0.MoveNext() in C:\Users\james\source\repos\ConsoleApp6\ConsoleApp6\Program.cs:line 4
   at Program.<Main>(String[] args)

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions