]> source.dussan.org Git - tigervnc.git/commitdiff
Flush socket before checking buffer 299/head
authorPierre Ossman <ossman@cendio.se>
Fri, 29 Apr 2016 13:50:54 +0000 (15:50 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 29 Apr 2016 13:50:54 +0000 (15:50 +0200)
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

index 3a072ef04424cd8927b7ec4e410f68cd9731dc29..97f7d2867dd3e1916ed0e5f9b4abb9de0dd8f644 100644 (file)
@@ -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;