From 9547a28faa9b4a9df02bea3cd55b011d615532e9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 15 Apr 2015 12:41:23 +0200 Subject: Add BIGREQUEST extension support to nxproxy/nxcomp. This work has been started by Paul Szarbo but has been discontinued before final completion. So, this is work in progress. For reference / communication history, see [1]. [1] https://bugs.debian.org/766299 --- nxcomp/WriteBuffer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nxcomp/WriteBuffer.h') diff --git a/nxcomp/WriteBuffer.h b/nxcomp/WriteBuffer.h index 4673cecee..55b1098e4 100644 --- a/nxcomp/WriteBuffer.h +++ b/nxcomp/WriteBuffer.h @@ -32,8 +32,14 @@ // This is likely to be a reply to a X_ListFonts where // user has a large amount of installed fonts. // +// Used also for messages sent, and should accommodate any BIG-REQUESTS. +// Value was 4MB = 4194304, changed to 100MB = 104857600. +// See also sanity check limits (set same, to 100*1024*1024) in +// ClientReadBuffer.cpp ServerReadBuffer.cpp and ClientChannel.cpp, and +// ENCODE_BUFFER_OVERFLOW_SIZE DECODE_BUFFER_OVERFLOW_SIZE elsewhere. +// -#define WRITE_BUFFER_OVERFLOW_SIZE 4194304 +#define WRITE_BUFFER_OVERFLOW_SIZE 100*1024*1024 class WriteBuffer { -- cgit v1.2.3