Skip to content

Re-use reqwest::Client and allow users to customize it #58

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

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

TmLev
Copy link
Contributor

@TmLev TmLev commented Mar 13, 2023

Creating new reqwest::Client on each request prevents reqwest from leveraging its connection pool, leading to unnecessary TCP handshakes.

Creating new `reqwest::Client` on each request prevents `reqwest` from using its connection pool, leading to unnecessary TCP handshakes.
@64bit
Copy link
Owner

64bit commented Mar 15, 2023

Hi @TmLev , nice optimization by leveraging connection pool, thank you for the PR!

I'll release this sometime later this week/weekend.

@64bit 64bit merged commit cf7d39c into 64bit:main Mar 17, 2023
@64bit
Copy link
Owner

64bit commented Mar 18, 2023

This is released in v0.9.5

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.

2 participants