mirror of
https://github.com/htrefil/rkvm.git
synced 2024-12-26 09:58:32 +01:00
Disable the Nagle algorithm
This commit is contained in:
parent
cda0dd0ef7
commit
458b7bf0e8
2 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ pub async fn run(
|
|||
};
|
||||
|
||||
stream.set_linger(None).map_err(Error::Network)?;
|
||||
stream.set_nodelay(false).map_err(Error::Network)?;
|
||||
|
||||
log::info!("Connected to server");
|
||||
|
||||
|
|
|
@ -142,6 +142,7 @@ async fn client(
|
|||
) -> Result<(), ClientError> {
|
||||
let negotiate = async {
|
||||
stream.set_linger(None)?;
|
||||
stream.set_nodelay(false)?;
|
||||
|
||||
let stream = acceptor.accept(stream).await?;
|
||||
log::info!("{}: TLS connected", addr);
|
||||
|
|
Loading…
Reference in a new issue