Skip to content

Implement straightforward ServicePoint(Manager) properties in HttpWebRequest - #94664

Merged
liveans merged 17 commits into
dotnet:mainfrom
liveans:httpwebrequest-straightforward-missing-parts-impl
Dec 10, 2023
Merged

Implement straightforward ServicePoint(Manager) properties in HttpWebRequest#94664
liveans merged 17 commits into
dotnet:mainfrom
liveans:httpwebrequest-straightforward-missing-parts-impl

Conversation

@liveans

@liveans liveans commented Nov 13, 2023

Copy link
Copy Markdown
Contributor

I'm going to create an issue with a list of properties that are not implemented.
I'm still working on the AllowWriteStreamBuffering property, I'll create a follow-up PR for this.

Implemented properties from ServicePoint:

  • TcpKeepAlive
  • ReceiveBufferSize
  • ContinueTimeout
  • Expect100Continue
@liveans
liveans requested a review from a team November 13, 2023 13:20
@ghost ghost added the area-System.Net label Nov 13, 2023
@ghost ghost assigned liveans Nov 13, 2023
@ghost

ghost commented Nov 13, 2023

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

I'm going to create an issue with a list of properties that are not implemented.
I'm still working on the AllowWriteStreamBuffering property, I'll create a follow-up PR for this.

Implemented properties from ServicePoint:

  • TcpKeepAlive
  • UseNagleAlgorithm
  • ReceiveBufferSize

Implemented properties from ServicePointManager:

  • ReusePort
Author: liveans
Assignees: -
Labels:

area-System.Net

Milestone: -
@liveans

liveans commented Nov 13, 2023

Copy link
Copy Markdown
Contributor Author

/azp list

@azure-pipelines

Copy link
Copy Markdown
CI/CD Pipelines for this repository:
@liveans

liveans commented Nov 13, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@antonfirsov antonfirsov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I assume it's impossible to implement functional tests for this. How do you test/validate the changes?

Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated
Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated
@liveans

liveans commented Nov 14, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).
@liveans

liveans commented Nov 14, 2023

Copy link
Copy Markdown
Contributor Author

I assume it's impossible to implement functional tests for this. How do you test/validate the changes?

I'm testing these options manually, but I'll try to write some tests for this.

Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated

@wfurt wfurt 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.

generally looks good to me.
We should perhaps add at least some get/set tests so we exercise the new code path.

@ManickaP

Copy link
Copy Markdown
Member

What issue(s) does this fixes/contributes to? Could you put them to the description.

@ManickaP ManickaP 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.

+1 for the tests as well, some coverage would be nice.

Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated
Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated
@liveans

liveans commented Nov 20, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).
Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs
Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
@liveans

liveans commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).
@liveans

liveans commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

@dotnet/ncl This is ready for final review, I've tested implemented features through Wireshark, and it's working.

@liveans

liveans commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@antonfirsov antonfirsov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Product code LGTM, a few suggestions for the tests.

Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Ahmet Ibrahim Aksoy and others added 2 commits December 4, 2023 17:12
Co-authored-by: Anton Firszov <antonfir@gmail.com>
@liveans

liveans commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).
Comment thread src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated
Comment thread src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs Outdated

@wfurt wfurt 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.

LGTM % comments.
Good improvement.

Ahmet Ibrahim Aksoy and others added 2 commits December 8, 2023 12:57
Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com>
@liveans

liveans commented Dec 8, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).
@liveans

liveans commented Dec 10, 2023

Copy link
Copy Markdown
Contributor Author

Outerloop failures unrelated

@liveans
liveans merged commit f0a6dbd into dotnet:main Dec 10, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 10, 2024
@liveans
liveans deleted the httpwebrequest-straightforward-missing-parts-impl branch January 15, 2024 10:59
@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.