diff options
author | Eric Dumazet <edumazet@google.com> | 2024-07-10 03:14:01 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-07-11 05:05:27 +0300 |
commit | 97a9063518f198ec0adb2ecb89789de342bb8283 (patch) | |
tree | 3b51fb667ca71b6ca58debaf9efaa83133e5513f /scripts/clang-tools/gen_compile_commands.py | |
parent | e1533b6319ab9c3a97dad314dd88b3783bc41b69 (diff) | |
download | linux-97a9063518f198ec0adb2ecb89789de342bb8283.tar.xz |
tcp: avoid too many retransmit packets
If a TCP socket is using TCP_USER_TIMEOUT, and the other peer
retracted its window to zero, tcp_retransmit_timer() can
retransmit a packet every two jiffies (2 ms for HZ=1000),
for about 4 minutes after TCP_USER_TIMEOUT has 'expired'.
The fix is to make sure tcp_rtx_probe0_timed_out() takes
icsk->icsk_user_timeout into account.
Before blamed commit, the socket would not timeout after
icsk->icsk_user_timeout, but would use standard exponential
backoff for the retransmits.
Also worth noting that before commit e89688e3e978 ("net: tcp:
fix unexcepted socket die when snd_wnd is 0"), the issue
would last 2 minutes instead of 4.
Fixes: b701a99e431d ("tcp: Add tcp_clamp_rto_to_user_timeout() helper to improve accuracy")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Jon Maxwell <jmaxwell37@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20240710001402.2758273-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions