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

Add ability to pass global agent options for HttpClient #378

Merged

Conversation

aleksandrlevochkin
Copy link
Contributor

@aleksandrlevochkin aleksandrlevochkin commented Sep 19, 2024

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
@per1234
Copy link

per1234 commented Sep 20, 2024

@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
Copy link
Contributor Author

aleksandrlevochkin commented Sep 20, 2024

@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