-
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
Fixed non-decreasing count of stream on H3 connection. #51742
Conversation
Fixed testing H/3 loopback stream to properly close. Otherwise, the stream will end up in a bad state and the connection will eventually run out of available streams.
Tagging subscribers to this area: @dotnet/ncl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} | ||
} | ||
|
||
private void IncreaseRemainingStreamCount(long delta) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if delta
is negative "AdjustRemainingStreamCount" may be better name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's never <= 0
. I added an assert to express that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with client code. Approving to show my enthusiasm to have this fixed 😄
Once there is a daily SDK with this fix available then I'll test it out.
Note that this fixes the problem only for the initially set limit of 100 streams. The more general fix and API will follow with #32079. This is mainly to unblock ASP.NET core scenarios.
Fixes #49617
cc: @JamesNK