connection: enable tcp nodealy
This commit is contained in:
parent
eb18873960
commit
0e831dbe00
@ -111,6 +111,9 @@ fn main() -> io::Result<()> {
|
|||||||
return Err(e);
|
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);
|
log::info!("Accepted connection from: {}", address);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user