Skip to content
Snippets Groups Projects
Commit 9d6b9684 authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

Disable Nagle algorithm (#7932)

* Disable Nagle algorithm

* Oops, didn't compile
parent 450b96c5
No related merge requests found
......@@ -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()) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment