Skip to content

Commit 0b704c8

Browse files
committed
Turn on TCP NO_DELAY by default http-rs#322
1 parent 876912d commit 0b704c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ impl Config {
5353

5454
impl Default for Config {
5555
fn default() -> Self {
56-
HttpConfig::default().into()
56+
let conf:Self = HttpConfig::default().into();
57+
conf.set_tcp_no_delay(true)
5758
}
5859
}
5960

@@ -122,7 +123,7 @@ impl Config {
122123

123124
/// Set TCP `NO_DELAY`.
124125
///
125-
/// Default: `false`.
126+
/// Default: `true`.
126127
///
127128
/// Note: Does nothing on `wasm-client` (or `native-client` on `wasm32`).
128129
pub fn set_tcp_no_delay(mut self, no_delay: bool) -> Self {

0 commit comments

Comments
 (0)