Skip to content

Commit

Permalink
use always the default value for acknowledged delay
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Sep 29, 2024
1 parent 94f29be commit 98ad29b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/fd/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ impl Socket {

let s = nic.get_mut_socket::<tcp::Socket<'_>>(handle);
s.set_nagle_enabled(nagle_enabled);
s.set_ack_delay(ack_delay);
s.listen(self.port)
.map(|_| ())
.map_err(|_| io::Error::EIO)?;
Expand All @@ -433,11 +432,6 @@ impl Socket {
for i in self.handle.iter() {
let socket = nic.get_mut_socket::<tcp::Socket<'_>>(*i);
socket.set_nagle_enabled(optval);
if optval {
socket.set_ack_delay(None);
} else {
socket.set_ack_delay(Some(Duration::from_millis(10)));
}
}

Ok(())
Expand Down

0 comments on commit 98ad29b

Please sign in to comment.