Disable Nagle algorithm (#7932)

* Disable Nagle algorithm

* Oops, didn't compile
This commit is contained in:
Pierre Krieger
2021-01-20 11:14:24 +01:00
committed by GitHub
parent 450b96c50d
commit 9d6b9684d9
+1 -1
View File
@@ -60,7 +60,7 @@ pub fn build_transport(
};
#[cfg(not(target_os = "unknown"))]
let transport = transport.or_transport(if !memory_only {
let desktop_trans = tcp::TcpConfig::new();
let desktop_trans = tcp::TcpConfig::new().nodelay(true);
let desktop_trans = websocket::WsConfig::new(desktop_trans.clone())
.or_transport(desktop_trans);
OptionalTransport::some(if let Ok(dns) = dns::DnsConfig::new(desktop_trans.clone()) {