-
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
[QUIC] MsQuicStream ctor code shuffles #55815
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsWe should move this before callback handler registration. runtime/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs Lines 120 to 124 in f59a132
We should set it before SetCallbackHandlerDelegate since we can get CONNECTION_CLOSED event and that needs this. runtime/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs Line 126 in f59a132
|
Failure:
Observed in PR #57598 - System.Net.Http.Functional.Tests on Fedora.34 |
It is unclear how often it shows up in CI -- we can't easily query Kusto for this :( ... bumping it to 6.0. |
Test failures 7/30-8/23 (incl. PRs):
|
Moved ConnectionState assignment before msquic callback registration to avoid NRE in callback, in case Connection gets closed during Stream's ctor. Fixes #55815
Given the frequency in CI, we should backport it to 6.0. Reopening to track that. |
Yes, this is happening in release/6.0 as well: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-57765-merge-d32bb18c1a0f47aba1/System.Net.Http.Functional.Tests/1/console.a56010ed.log?sv=2019-07-07&se=2021-09-09T00%3A07%3A38Z&sr=c&sp=rl&sig=bGIxW9Kk0xYnJ6I5POlZmWCK1EPNV1csEQDBxro7LHY%3D
Shouldn't we also backport into the rc1 branch? |
Depends on appetite for RC1. |
As long as the fix lands in any branch that will exist for the next few years I'm good. Was mostly curious about why RC1 vs RC2, stabilization of RC1 makes sense. |
We should move this before callback handler registration.
runtime/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs
Lines 120 to 124 in f59a132
We should set it before SetCallbackHandlerDelegate since we can get CONNECTION_CLOSED event and that needs this.
If we want to prevent decrementing stream count, we should explicitely unset here.
runtime/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs
Line 126 in f59a132
The same applies to outbound ctor.
The text was updated successfully, but these errors were encountered: