tcp: no send space in timer recovery 91/29591/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 22 Oct 2020 06:24:53 +0000 (23:24 -0700)
committerDave Barach <openvpp@barachs.net>
Thu, 22 Oct 2020 15:55:00 +0000 (15:55 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I9461b6539c504ca844c25d04abe95929f842e4e9

src/vnet/tcp/tcp.c

index 31ba276..d94da2c 100644 (file)
@@ -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;