From 7d8100fd951af29c245b72847fd2f7e8a5c74acd Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 21 Oct 2020 23:24:53 -0700 Subject: tcp: no send space in timer recovery Type: fix Signed-off-by: Florin Coras Change-Id: I9461b6539c504ca844c25d04abe95929f842e4e9 --- src/vnet/tcp/tcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vnet/tcp') 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; -- cgit 1.2.3-korg