Blame SOURCES/0005-common-Fix-off-by-one-error-in-flow-control.patch

daae2c
From a3fe60b76193199b7244c23274fe1b8d10a6aff4 Mon Sep 17 00:00:00 2001
daae2c
From: Stef Walter <stefw@redhat.com>
daae2c
Date: Fri, 7 Sep 2018 18:56:44 +0200
daae2c
Subject: [PATCH] common: Fix off by one error in flow control
daae2c
daae2c
This led to hangs when the ping sequence number replied to
daae2c
was exactly equal to the throttling window. We would only
daae2c
consider unthrottling when the sequence was greater than
daae2c
the throttling window.
daae2c
daae2c
Fixes #10013
daae2c
Closes #10020
daae2c
---
daae2c
 src/common/cockpitchannel.c | 2 +-
daae2c
 1 file changed, 1 insertion(+), 1 deletion(-)
daae2c
daae2c
diff --git a/src/common/cockpitchannel.c b/src/common/cockpitchannel.c
daae2c
index 2d26879f7..563194960 100644
daae2c
--- a/src/common/cockpitchannel.c
daae2c
+++ b/src/common/cockpitchannel.c
daae2c
@@ -234,7 +234,7 @@ process_pong (CockpitChannel *self,
daae2c
                  self->priv->id, sequence);
daae2c
     }
daae2c
 
daae2c
-  if (sequence > self->priv->out_window)
daae2c
+  if (sequence >= self->priv->out_window)
daae2c
     {
daae2c
       /* Up to this point has been confirmed received */
daae2c
       self->priv->out_window = sequence + CHANNEL_FLOW_WINDOW;
daae2c
-- 
daae2c
2.17.1
daae2c