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

Implement HttpWebRequest AllowWriteStreamBuffering property #95001

Merged
merged 58 commits into from
Mar 5, 2024

Conversation

liveans
Copy link
Member

@liveans liveans commented Nov 20, 2023

Fixes #60993 and #18632

This property is set (to TRUE or FALSE) in a 10.2% Nuget package that uses HttpWebRequest.

@ghost
Copy link

ghost commented Nov 20, 2023

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

Issue Details

Fixes #60993 and #18632

Author: liveans
Assignees: -
Labels:

area-System.Net

Milestone: -

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 good so far.

@liveans
Copy link
Member Author

liveans commented Dec 15, 2023

/azp list

Copy link

CI/CD Pipelines for this repository:

@liveans
Copy link
Member Author

liveans commented Dec 15, 2023

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liveans
Copy link
Member Author

liveans commented Dec 15, 2023

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liveans
Copy link
Member Author

liveans commented Dec 15, 2023

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liveans
Copy link
Member Author

liveans commented Jan 2, 2024

/azp run runtime-libraries-coreclr outerloop

…g stream to HttpClient Internal Stream directly
@liveans
Copy link
Member Author

liveans commented Feb 23, 2024

I've ended up removing StreamBuffer and separating the Non-Buffering and Buffering streams. Currently, the buffering mode will use ByteArrayContent again, and for streaming mode, we have RequestStreamContent which connects the internal HttpClient stream to RequestStream directly, and basically RequestStream becomes a wrapper as Natalia suggested in our chat.

Is there any pushback on these changes?

cc @ManickaP @MihaZupan @CarnaViire

@liveans
Copy link
Member Author

liveans commented Feb 23, 2024

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liveans
Copy link
Member Author

liveans commented Feb 29, 2024

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

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

This looks good! Last batch of mostly small comments. Thanks!

@liveans
Copy link
Member Author

liveans commented Mar 4, 2024

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@liveans liveans merged commit 40bd270 into dotnet:main Mar 5, 2024
111 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 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.

HttpWebRequest.AllowWriteStreamBuffering seems to lack an implementation
9 participants