Browse Source

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.
tags/v1.6.90
Pierre Ossman 8 years ago
parent
commit
352d062e98
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      common/rfb/VNCSConnectionST.cxx

+ 1
- 0
common/rfb/VNCSConnectionST.cxx View 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;


Loading…
Cancel
Save