summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-04-29 15:50:54 +0200
committerPierre Ossman <ossman@cendio.se>2016-04-29 15:50:54 +0200
commit352d062e982ea38506756c04b9f4362d0f1ae892 (patch)
treef13776e9e180d7e6ddf556424ade7ef19fa0d924 /common
parenta40ab204bda8cc4ebe5f061c8a5776a1505f1b53 (diff)
downloadtigervnc-352d062e982ea38506756c04b9f4362d0f1ae892.tar.gz
tigervnc-352d062e982ea38506756c04b9f4362d0f1ae892.zip
Flush socket before checking buffer
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.
Diffstat (limited to 'common')
-rw-r--r--common/rfb/VNCSConnectionST.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index 3a072ef0..97f7d286 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;