We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d97280 commit e4a2365Copy full SHA for e4a2365
dc/s2n-quic-dc/src/stream/client/tokio.rs
@@ -64,6 +64,7 @@ where
64
65
// Make sure TCP_NODELAY is set
66
let _ = socket.set_nodelay(true);
67
+ let _ = socket.set_linger(Some(core::time::Duration::ZERO));
68
69
// if the acceptor_ip isn't known, then ask the socket to resolve it for us
70
let peer_addr = if acceptor_addr.ip().is_unspecified() {
dc/s2n-quic-dc/src/stream/server/tokio/tcp.rs
@@ -502,6 +502,7 @@ where
502
{
503
504
let _ = stream.set_nodelay(true);
505
+ let _ = stream.set_linger(Some(Duration::ZERO));
506
507
let meta = event::api::ConnectionMeta {
508
id: 0, // TODO use an actual connection ID
0 commit comments