Ogeon / rustful

[OUTDATED] A light HTTP framework for Rust
https://docs.rs/rustful
Apache License 2.0
862 stars 51 forks source link

Give the user control over the server's keep-alive policy #79

Closed Ogeon closed 9 years ago

Ogeon commented 9 years ago

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.

Ogeon commented 9 years ago

@homu r+

homu commented 9 years ago

:pushpin: Commit ac01aab has been approved by Ogeon

homu commented 9 years ago

:hourglass: Testing commit ac01aab with merge e4c55af...

homu commented 9 years ago

:sunny: Test successful - status