Skip to content
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

Remove synchronization from Http2Connection.ExtendWindow #97878

Merged
merged 5 commits into from
Feb 14, 2024

Conversation

antonfirsov
Copy link
Member

@antonfirsov antonfirsov commented Feb 2, 2024

There is an opportunity for simplification: _pendingWindowUpdate is the only state the ExtendWindow method touches under the lock. There is no other code that reads or writes _pendingWindowUpdate after the creation of the connection object. Originating from ProcessIncomingFramesAsync, calls to ExtendWindow are sequential, and never expected to happen concurrently.

@ghost
Copy link

ghost commented Feb 2, 2024

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

There is an opportunity for simplification: _pendingWindowUpdate is the only state the ExtendWindow method touches under the lock. There is no other code that reads or writes _pendingWindowUpdate after the creation of the connection object. Calls to ExtendWindow are sequential, originating from ProcessIncomingFramesAsync and never expected to happen concurrently.

Author: antonfirsov
Assignees: antonfirsov
Labels:

area-System.Net.Http

Milestone: -

Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. LGTM

Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antonfirsov
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antonfirsov
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antonfirsov antonfirsov merged commit 13e63af into dotnet:main Feb 14, 2024
110 of 119 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2024
@karelz karelz added this to the 9.0.0 milestone May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants