diff options
author | Mithun Iyer <iyerm@google.com> | 2020-05-13 21:25:28 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-13 21:26:54 -0700 |
commit | f1ad2d54ab28dcdaaa5d7aa95d8f1b370b6fd36d (patch) | |
tree | 77f83210bcbc6679660c4be2baff5e0b599d69b2 /test/packetimpact/tests/BUILD | |
parent | 8b8774d7152eb61fc6273bbae679e80c34188517 (diff) |
Fix TCP segment retransmit timeout handling.
As per RFC 1122 and Linux retransmit timeout handling:
- The segment retransmit timeout needs to exponentially increase and
cap at a predefined value.
- TCP connection needs to timeout after a predefined number of
segment retransmissions.
- TCP connection should not timeout when the retranmission timeout
exceeds MaxRTO, predefined upper bound.
Fixes #2673
PiperOrigin-RevId: 311463961
Diffstat (limited to 'test/packetimpact/tests/BUILD')
-rw-r--r-- | test/packetimpact/tests/BUILD | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/packetimpact/tests/BUILD b/test/packetimpact/tests/BUILD index c25b3b8c1..fff7787c8 100644 --- a/test/packetimpact/tests/BUILD +++ b/test/packetimpact/tests/BUILD @@ -82,6 +82,16 @@ packetimpact_go_test( ) packetimpact_go_test( + name = "tcp_retransmits", + srcs = ["tcp_retransmits_test.go"], + deps = [ + "//pkg/tcpip/header", + "//test/packetimpact/testbench", + "@org_golang_x_sys//unix:go_default_library", + ], +) + +packetimpact_go_test( name = "tcp_outside_the_window", srcs = ["tcp_outside_the_window_test.go"], deps = [ |