From: Florin Coras Date: Thu, 22 Oct 2020 06:24:53 +0000 (-0700) Subject: tcp: no send space in timer recovery X-Git-Tag: v21.06-rc0~289 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=7d8100fd951af29c245b72847fd2f7e8a5c74acd;p=vpp.git tcp: no send space in timer recovery Type: fix Signed-off-by: Florin Coras Change-Id: I9461b6539c504ca844c25d04abe95929f842e4e9 --- diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 31ba276c9ee..d94da2cf390 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -916,7 +916,10 @@ tcp_snd_space_inline (tcp_connection_t * tc) { int snd_space; - if (PREDICT_FALSE (tcp_in_fastrecovery (tc) + /* Fast path is disabled when recovery is on. @ref tcp_session_custom_tx + * controls both retransmits and the sending of new data while congested + */ + if (PREDICT_FALSE (tcp_in_cong_recovery (tc) || tc->state == TCP_STATE_CLOSED)) return 0;