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

Use ArrayBuffer for read buffer management in HttpConnection #79524

Merged
merged 2 commits into from
Jan 1, 2023

Conversation

MihaZupan
Copy link
Member

Contributes to #61223

This PR is a drop-in replacement of the original read buffer management.
IMO it makes the code more maintainable and easier to read.

I haven't changed any of the functionality (pooling, zero-byte reads, etc.), but this change makes it easier for us to do so in the future (main reason why I'm doing this).

@MihaZupan MihaZupan added this to the 8.0.0 milestone Dec 12, 2022
@MihaZupan MihaZupan requested a review from a team December 12, 2022 07:08
@MihaZupan MihaZupan self-assigned this Dec 12, 2022
@ghost
Copy link

ghost commented Dec 12, 2022

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

Issue Details

Contributes to #61223

This PR is a drop-in replacement of the original read buffer management.
IMO it makes the code more maintainable and easier to read.

I haven't changed any of the functionality (pooling, zero-byte reads, etc.), but this change makes it easier for us to do so in the future (main reason why I'm doing this).

Author: MihaZupan
Assignees: MihaZupan
Labels:

area-System.Net.Http

Milestone: 8.0.0

Copy link
Member

@rzikm rzikm left a comment

Choose a reason for hiding this comment

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

Looks great!, one minor comment to address.

@MihaZupan
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

oldzhu pushed a commit to oldzhu/runtime that referenced this pull request Jan 1, 2023
…79524)

* Use ArrayBuffer for read buffer management in HttpConnection

* Update outdated comment
@MihaZupan MihaZupan merged commit 0892659 into dotnet:main Jan 1, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jan 31, 2023
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.

2 participants