-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Weird] HTTP/3 does not work after publishing app, but works on debug and release #79727
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionHello, I have a weird bug, that my app can make HTTP/3 requests when running on debug or release, but, when the app is published, it cannot make such requests. Reproduction Steps
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DebugType>embedded</DebugType>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
<EnableCompressionInSingleFile>True</EnableCompressionInSingleFile>
<PublishReadyToRun>True</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Net.SocketsHttpHandler.Http3Support" Value="true" />
</ItemGroup>
dotnet publish ./src/Pororoca.Desktop/Pororoca.Desktop.csproj `
--verbosity quiet `
--nologo `
--configuration Release `
-p:PublishSingleFile=true `
--self-contained true `
--runtime "win-x64" `
--output "./out/win-x64/" Expected behaviorShould make HTTP/3 requests without problems, because it works with Actual behaviorThe following Exception is thrown:
Regression?No response Known WorkaroundsNo response ConfigurationRunning on .NET 6, last app version was compiled with 6.0.403; Other informationThe URLs that I use for testing HTTP/3 are: The error happens with both of them... My project is on GitHub, if you want to use it to reproduce the bug: https://github.com/alexandrehtrb/Pororoca
|
Closing as duplicate of #73290 |
Description
Hello,
I have a weird bug, that my app can make HTTP/3 requests when running on debug or release, but, when the app is published, it cannot make such requests.
My app is an Avalonia desktop app in .NET 6.
This bug happens in both Linux and Windows versions of the app.
Reproduction Steps
Make a .NET 6 app with a HttpClient making HTTP/3 requests
The app's .csproj has:
Expected behavior
Should make HTTP/3 requests without problems, because it works with
dotnet run
, whether it is on Debug or Release configurationsActual behavior
The following Exception is thrown:
Regression?
No response
Known Workarounds
No response
Configuration
Running on .NET 6, last app version was compiled with 6.0.403;
Bug confirmed on Linux x64 and Windows 11 x64
Other information
The URLs that I use for testing HTTP/3 are:
https://cloudflare-quic.com/
https://quic.aiortc.org/
The error happens with both of them...
My project is on GitHub, if you want to use it to reproduce the bug:
https://github.com/alexandrehtrb/Pororoca
The text was updated successfully, but these errors were encountered: