From 4374d9e7dec828d54fb4448add61ec22698a73fc Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 7 Nov 2010 12:20:47 +0200 Subject: server/red_channel: make MAX_SEND_VEC 100 like DisplayChannel/CursorChannel in red_worker --- server/red_channel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/red_channel.h b/server/red_channel.h index c271d517..3e2ae48f 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -29,7 +29,10 @@ #include "server/demarshallers.h" #define MAX_SEND_BUFS 1000 -#define MAX_SEND_VEC 50 +// NOTE: MAX_SEND_VEC is 100 for DisplayChannel, was 50 before - make this configurable? +// currently setting to the max - so effectively increased memory usage by +// (100-50)*sizeof(iovec)*(num_of_channels-2) ==(arch 64bit) 50*16*6 ~ 5k. Not terrible +#define MAX_SEND_VEC 100 #define CLIENT_ACK_WINDOW 20 /* Basic interface for channels, without using the RedChannel interface. -- cgit