File U_tigervnc-Flush-socket-before-checking-buffer.patch of Package tigervnc.20175
From 352d062e982ea38506756c04b9f4362d0f1ae892 Mon Sep 17 00:00:00 2001
From: Pierre Ossman <ossman@cendio.se>
Date: Fri, 29 Apr 2016 15:50:54 +0200
Subject: Flush socket before checking buffer
References: bsc#1169952, bsc#1165680
Upstream: merged
There might be stuff lingering in the buffer simply because flush()
hasn't been called in a while, rather than because the transport is
congested.
---
common/rfb/VNCSConnectionST.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index 3a072ef04..97f7d2867 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -832,6 +832,7 @@ bool VNCSConnectionST::isCongested()
int offset;
// Stuff still waiting in the send buffer?
+ sock->outStream().flush();
if (sock->outStream().bufferUsage() > 0)
return true;