Skip to content

Commit

Permalink
connection: enable tcp nodealy
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Aug 6, 2024
1 parent eb18873 commit 0e831db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pumpkin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0e831db

Please sign in to comment.