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

feat(client): rename client::Builder pool options #2142

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

seanmonstar
Copy link
Member

  • Renamed keep_alive_timeout to pool_idle_timeout.
  • Renamed max_idle_per_host to pool_max_idle_per_host.
  • Deprecated keep_alive(bool) due to confusing name. To disable the
    connection pool, call pool_max_idle_per_host(0).

@seanmonstar
Copy link
Member Author

This is partly motivated by wanting to add HTTP2 keep-alive options, and the names keep_alive(bool) and keep_alive_timeout would be confusing as they have different semantics.

@seanmonstar seanmonstar force-pushed the client-builder-rename-pool-options branch 4 times, most recently from 7512359 to 6c3a4fc Compare February 27, 2020 22:10
- Renamed `keep_alive_timeout` to `pool_idle_timeout`.
- Renamed `max_idle_per_host` to `pool_max_idle_per_host`.
- Deprecated `keep_alive(bool)` due to confusing name. To disable the
  connection pool, call `pool_max_idle_per_host(0)`.
@seanmonstar seanmonstar force-pushed the client-builder-rename-pool-options branch from 6c3a4fc to 9525fca Compare February 27, 2020 22:14
@seanmonstar seanmonstar merged commit a82fd6c into master Feb 27, 2020
@seanmonstar seanmonstar deleted the client-builder-rename-pool-options branch February 27, 2020 22:25
seanmonstar pushed a commit to seanmonstar/reqwest that referenced this pull request May 22, 2020
reqwest exposes the “pool_max_idle_per_host” option of hyper’s client
builder. This option used to be called “max_idle_per_host” in the hyper
crate, but it has recently been renamed [1].

This patch renames the reqwest representation of this option to make it
consistent with its name in the hyper crate again.

[1] hyperium/hyper#2142
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.

1 participant