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 8c37d08 commit 6ba9559Copy full SHA for 6ba9559
1 file changed
src/socket/tcp.rs
@@ -6864,8 +6864,7 @@ mod test {
6864
s.recv_slice(&mut [0; 1]).unwrap();
6865
recv_nothing!(s);
6866
6867
- // Now, if the remote wants to send one byte outside of the receive window that we
6868
- // previously advertised, it should not succeed.
+ // Send 1 byte outside of the advertised received window. No ACK is sent due to ACK delay.
6869
send!(
6870
s,
6871
TcpRepr {
@@ -6876,8 +6875,13 @@ mod test {
6876
6875
..SEND_TEMPL
6877
}
6878
);
+
6879
+ recv_nothing!(s);
6880
6881
+ // When ACK delay expries, previously sent byte should not be accepted.
6882
recv!(
6883
6884
+ time 10,
6885
Ok(TcpRepr {
6886
seq_number: LOCAL_SEQ + 1,
6887
ack_number: Some(REMOTE_SEQ + 65),
0 commit comments