Skip to content

Commit

Permalink
feat(s2n-quic-dc): set linger to 0 (#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft authored Dec 9, 2024
1 parent 6d97280 commit e4a2365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dc/s2n-quic-dc/src/stream/client/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ where

// Make sure TCP_NODELAY is set
let _ = socket.set_nodelay(true);
let _ = socket.set_linger(Some(core::time::Duration::ZERO));

// if the acceptor_ip isn't known, then ask the socket to resolve it for us
let peer_addr = if acceptor_addr.ip().is_unspecified() {
Expand Down
1 change: 1 addition & 0 deletions dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ where
{
// Make sure TCP_NODELAY is set
let _ = stream.set_nodelay(true);
let _ = stream.set_linger(Some(Duration::ZERO));

let meta = event::api::ConnectionMeta {
id: 0, // TODO use an actual connection ID
Expand Down

0 comments on commit e4a2365

Please sign in to comment.