Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
352d062e98
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1
    0
      common/rfb/VNCSConnectionST.cxx

+ 1
- 0
common/rfb/VNCSConnectionST.cxx Näytä tiedosto

@@ -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…
Peruuta
Tallenna