The way keep-alive connections are handled in Hyper changed recently to close connections by default and allow opt-in keep-alive with a timeout. That rendered the available_threads option ineffective.
This PR replaces available_threads with a new keep_alive option that allows opting into keep-alive. The available_threads is still available as free_threads in KeepAlive and has the same functionality.
This is breaking for anything that uses the available_threads option. Note that the timeout has no effect before Rust 1.4.
The way
keep-alive
connections are handled in Hyper changed recently to close connections by default and allow opt-inkeep-alive
with a timeout. That rendered theavailable_threads
option ineffective.This PR replaces
available_threads
with a newkeep_alive
option that allows opting intokeep-alive
. Theavailable_threads
is still available asfree_threads
inKeepAlive
and has the same functionality.This is breaking for anything that uses the
available_threads
option. Note that the timeout has no effect before Rust 1.4.