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

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