Skip to content

Add ability to pass global agent options for HttpClient#378

Merged
aleksandrlevochkin merged 3 commits into
masterfrom
users/levochkin/increase-global-agent-timeout
Sep 19, 2024
Merged

Add ability to pass global agent options for HttpClient#378
aleksandrlevochkin merged 3 commits into
masterfrom
users/levochkin/increase-global-agent-timeout

Conversation

@aleksandrlevochkin

@aleksandrlevochkin aleksandrlevochkin commented Sep 19, 2024

Copy link
Copy Markdown
Contributor

WI
AB#2212397

Description
Since Node 19 global http agent uses HTTP Keep-Alive and a 5 second timeout by default: https://nodejs.org/api/http.html#httpglobalagent.

This might cause issues like this one with UseDotNet task: microsoft/azure-pipelines-tasks#20396

I added globalAgentOptions property to IRequestOptions to be able to set timeout and keepAlive parameters for global agent as needed when using HttpClient.

@aleksandrlevochkin aleksandrlevochkin marked this pull request as ready for review September 19, 2024 09:27
@aleksandrlevochkin aleksandrlevochkin requested review from a team as code owners September 19, 2024 09:27
@per1234

per1234 commented Sep 20, 2024

Copy link
Copy Markdown

@aleksandrlevochkin you created a new package release by merging this pull request. Please push a tag.

The problem of inconsistency of tagging by the project maintainers has been reported several times, including #361. Please reopen that issue until you have established a system that will ensure there is a tag for every Git release.

@aleksandrlevochkin

aleksandrlevochkin commented Sep 20, 2024

Copy link
Copy Markdown
Contributor Author

@per1234 thank you, I created a tag and a release for v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants