镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Use ArrayBuffer for read buffer management in HttpConnection - #79524

Merged
MihaZupan merged 2 commits into
dotnet:mainfrom
MihaZupan:http1connection-arraybuffer
Jan 1, 2023
Merged

MihaZupan merged 2 commits into
dotnet:mainfrom
MihaZupan:http1connection-arraybuffer

Conversation

@MihaZupan

Copy link
Copy Markdown
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

ghost commented Dec 12, 2022

Copy link
Copy Markdown

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

@rzikm rzikm left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
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