瀏覽代碼

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 年之前
父節點
當前提交
352d062e98
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      common/rfb/VNCSConnectionST.cxx

+ 1
- 0
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;


Loading…
取消
儲存