Skip to content

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

harsh-98 pushed a commit to harsh-98/async-openai that referenced this pull request Sep 3, 2025
)

Creating new `reqwest::Client` on each request prevents `reqwest` from using its connection pool, leading to unnecessary TCP handshakes.
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