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

Use the given connection pool idle timeout in the HTTPClient.Configuration inits #723

Merged

Conversation

gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Dec 20, 2023

Motivation

We provide some initialisers for HTTPClient.Configuration where users can provide idle timeouts for the connection pools used. However, we don't propagate those values down to the connection pool. This caused bugs in adopters' code.

Modifications

Propagate the idle timeout down to the connection pool.

Result

The given idle timeout is now actually used.

@gjcairo gjcairo requested a review from dnadoba December 20, 2023 21:36
@gjcairo gjcairo force-pushed the connection-pool-idle-timeout-propagation branch from 6ea7a0b to e5f06e3 Compare December 21, 2023 12:14
@gjcairo gjcairo merged commit 5ccda44 into swift-server:main Dec 21, 2023
7 of 8 checks passed
@gjcairo gjcairo deleted the connection-pool-idle-timeout-propagation branch December 21, 2023 12:51
@gjcairo gjcairo added the semver/patch For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants