diff --git a/src/main.rs b/src/main.rs index d5f4b041..654f3aab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,6 +100,10 @@ fn make_socket(addr: &SocketAddr, reuse_port: bool) -> std::io::Result { if reuse_port { socket.set_reuse_port(true)?; } + // SO_REUSEPORT is Unix-only; on Windows the flag is accepted but inert. + // Consume the parameter so `-D warnings` stays clean on Windows builds. + #[cfg(windows)] + let _ = reuse_port; // Disable Nagle's algorithm — send small responses (JSON, PROPFIND) // immediately instead of waiting up to 40ms for coalescing. socket.set_tcp_nodelay(true)?;