From 36ced0a5f4a2ae61afec6285a4a99e8c67939713 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 30 Apr 2011 04:57:59 +0000 Subject: [PATCH] - client: increase request msg buffer size for GUI RPCs svn path=/trunk/boinc/; revision=23486 --- checkin_notes | 6 ++++++ client/gui_rpc_server.h | 2 +- client/gui_rpc_server_ops.cpp | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index ba4bccd80f..e29b358863 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2713,3 +2713,9 @@ Rom 29 Apr 2011 samples/vboxwrapper/ vbox.cpp, .h vm.cpp, .h + +David 29 Apr 2011 + - client: increase request msg buffer size for GUI RPCs + client/ + gui_rpc_client_ops.cpp + gui_rpc_client.cpp diff --git a/client/gui_rpc_server.h b/client/gui_rpc_server.h index 1a8734af97..6642533f22 100644 --- a/client/gui_rpc_server.h +++ b/client/gui_rpc_server.h @@ -37,7 +37,7 @@ #define AU_MGR_QUIT_REQ 2 #define AU_MGR_QUIT_SENT 3 -#define GUI_RPC_REQ_MSG_SIZE 4096 +#define GUI_RPC_REQ_MSG_SIZE 100000 class GUI_RPC_CONN { public: diff --git a/client/gui_rpc_server_ops.cpp b/client/gui_rpc_server_ops.cpp index 728113b017..12e4fd6241 100644 --- a/client/gui_rpc_server_ops.cpp +++ b/client/gui_rpc_server_ops.cpp @@ -1010,9 +1010,9 @@ int GUI_RPC_CONN::handle_rpc() { int left = GUI_RPC_REQ_MSG_SIZE - request_nbytes; #ifdef _WIN32 - n = recv(sock, request_msg+request_nbytes, left, 0); + n = recv(sock, request_msg+request_nbytes, left, 0); #else - n = read(sock, request_msg+request_nbytes, left); + n = read(sock, request_msg+request_nbytes, left); #endif if (n <= 0) { request_nbytes = 0;