aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-11-04 09:01:08 +0100
committerPierre Ossman <ossman@cendio.se>2021-11-04 09:21:21 +0100
commit5ca77a1745759aa4e7e086460a9fb5c0cba6f8fa (patch)
tree0b3a770fb9c1d9cd9f28cc35c6431f913ba60bb3
parent86c948d19d82ca1f3307d5b8318f42aa214bedc2 (diff)
downloadtigervnc-5ca77a1745759aa4e7e086460a9fb5c0cba6f8fa.tar.gz
tigervnc-5ca77a1745759aa4e7e086460a9fb5c0cba6f8fa.zip
Increase maximum input buffer
macOS' built in VNC server unfortunately sends the entire monitor in a single rect, so we need to be prepared to buffer a lot of data in case the monitor has a large resolution. (cherry picked from commit 479ec11a2ee29a5321a28118c2d69307d752e216)
-rw-r--r--common/rdr/BufferedInStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rdr/BufferedInStream.cxx b/common/rdr/BufferedInStream.cxx
index 5a2694b4..d322793d 100644
--- a/common/rdr/BufferedInStream.cxx
+++ b/common/rdr/BufferedInStream.cxx
@@ -27,7 +27,7 @@
using namespace rdr;
static const size_t DEFAULT_BUF_SIZE = 8192;
-static const size_t MAX_BUF_SIZE = 4 * 1024 * 1024;
+static const size_t MAX_BUF_SIZE = 32 * 1024 * 1024;
BufferedInStream::BufferedInStream()
: bufSize(DEFAULT_BUF_SIZE), offset(0)