Skip to content

Commit

Permalink
设置nodelay
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Dec 30, 2023
1 parent e16a6f9 commit 41613b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service/main_service/tcp_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ pub async fn start_tcp(
continue;
}
};
if let Err(e) = stream.set_nodelay(true) {
log::info!("set_nodelay:{:?}", e);
}
log::info!("tcp连接 {}", addr);
let (r, mut w) = stream.into_split();

Expand Down

0 comments on commit 41613b7

Please sign in to comment.