From 892e75ca6fd36de7af3e9f52340afe47aca97306 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 11 Nov 2009 00:15:25 +0000 Subject: [PATCH] - client: the handling of GUI RPCs was inconsistent; some expected , some expected , and some would accept either. Changed them all to accept either. svn path=/trunk/boinc/; revision=19535 --- checkin_notes | 12 ++++++++++++ client/gui_rpc_server_ops.cpp | 18 +++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/checkin_notes b/checkin_notes index 0f9d38687e..7cf00614ab 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9033,3 +9033,15 @@ David 10 Nov 2009 lib/ coproc.cpp + +David 10 Nov 2009 + - client: the handling of GUI RPCs was inconsistent; + some expected , some expected , + and some would accept either. + Changed them all to accept either. + + NOTE: this means no request can be a substring of another + + client/ + gui_rpc_server_ops.cpp + diff --git a/client/gui_rpc_server_ops.cpp b/client/gui_rpc_server_ops.cpp index ce6428cc7c..b02e9b0e92 100644 --- a/client/gui_rpc_server_ops.cpp +++ b/client/gui_rpc_server_ops.cpp @@ -1144,11 +1144,11 @@ int GUI_RPC_CONN::handle_rpc() { handle_get_host_info(request_msg, mf); } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "\n"); gstate.read_global_prefs(); gstate.request_schedule_cpus("Preferences override"); @@ -1216,7 +1216,7 @@ int GUI_RPC_CONN::handle_rpc() { handle_get_cc_config(mf); } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "\n"); read_config_file(false); msg_printf(0, MSG_INFO, "Re-read config file"); @@ -1243,23 +1243,23 @@ int GUI_RPC_CONN::handle_rpc() { handle_project_op(request_msg, mf, "reset"); } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "")) { + } else if (match_tag(request_msg, "