-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix Http2Connection.GetIdleTicks #55820
Fix Http2Connection.GetIdleTicks #55820
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue DetailsThere is currently a wrong operand order in the subtraction. Fixes #43877
|
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
Wow, thanks for catching this. Why didn't this surface sooner? I guess it's a weird one, because it would cause connections to be treated as idle when they weren't, but only if they had 0 active requests? I'm trying to figure out how to guard against this in the future. Seems like we should at least assert somewhere that the result of GetIdleTicks() is >= 0? |
It's really the opposite. In the broken version, a connection would never be treated as idle. This behavior failed the test that expected an idle connection to be removed. |
There is currently a wrong operand order in the subtraction.
Fixes #43877