forked from tiny-http/tiny-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: socket2 TCP socket configuration
With default feature socket2 and the so called crate it is possible to create configurable TCP sockets. Needs MSRV 1.63. Fixes issue tiny-http#143 There is a the new field socket_config: connection::SocketConfig in ServerConfig. Call Server::new to create a server with your own config. The defaults are... keep_alive: true no_delay: true read_timeout: 10s tcp_keepalive_interval: None tcp_keepalive_time: 5s write_timeout: 10s README.md/Cargo.toml is going back to MSRV 1.60 and describes which feature needs a newer/higher Rust version.
- Loading branch information
Showing
4 changed files
with
163 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters