Skip to content

Commit

Permalink
fix clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
putyWang committed Nov 12, 2023
1 parent 0326b47 commit ecfec8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2326,11 +2326,8 @@ impl<'a> Socket<'a> {
emit(cx, (ip_repr, repr))?;

// while actually sending the syn packet, add or update the SynRetransmit timer
match (self.state, self.timer) {
(State::SynSent, Timer::SynRetransmit { .. } | Timer::Idle { .. }) => {
if let (State::SynSent, Timer::SynRetransmit { .. } | Timer::Idle { .. }) = (self.state, self.timer) {
self.timer.set_for_syn_retransmit(cx.now());
}
_ => (),
}
// We've sent something, whether useful data or a keep-alive packet, so rewind
// the keep-alive timer.
Expand Down

0 comments on commit ecfec8b

Please sign in to comment.