From f1ad2d54ab28dcdaaa5d7aa95d8f1b370b6fd36d Mon Sep 17 00:00:00 2001 From: Mithun Iyer Date: Wed, 13 May 2020 21:25:28 -0700 Subject: 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 --- test/packetimpact/tests/BUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/packetimpact/tests/BUILD') 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 @@ -81,6 +81,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"], -- cgit v1.2.3