connection: enable tcp nodealy

This commit is contained in:
Snowiiii committed 2024-08-07 00:01:04 +02:00
1 parent eb18873960
commit 0e831dbe00
1 file changed
+3
+3
View File
@@ -111,6 +111,9 @@ fn main() -> io::Result<()> {
return Err(e);
}
};
if let Err(e) = connection.set_nodelay(true) {
log::warn!("failed to set TCP_NODELAY {e}");
}
log::info!("Accepted connection from: {}", address);