From c3dc333f26de33ff11fe2cf95bb9c9469ce5495c Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 28 Jul 2009 04:16:32 +0000 Subject: [PATCH] - client: There was already a way to check if the reference site check was in progress, I missed it through my first pass through the manager code while trying to debug the proxy problem get_cc_config returns NETWORK_STATUS_LOOKUP_PENDING which then causes the manager to call get_cc_status again. client/ gui_rpc_server_ops.cpp net_stats.cpp, .h svn path=/trunk/boinc/; revision=18743 --- checkin_notes | 11 +++++++++++ client/gui_rpc_server_ops.cpp | 11 +---------- client/net_stats.cpp | 6 ------ client/net_stats.h | 1 - 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/checkin_notes b/checkin_notes index d2f28ad3aa..c3754d81b9 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6571,3 +6571,14 @@ Rom 27 July 2009 clientgui/ AccountManagerPropertiesPage.cpp, .h ProjectPropertiesPage.cpp, .h + +Rom 27 July 2009 + - client: There was already a way to check if the reference site + check was in progress, I missed it through my first pass + through the manager code while trying to debug the proxy problem + get_cc_config returns NETWORK_STATUS_LOOKUP_PENDING which + then causes the manager to call get_cc_status again. + + client/ + gui_rpc_server_ops.cpp + net_stats.cpp, .h diff --git a/client/gui_rpc_server_ops.cpp b/client/gui_rpc_server_ops.cpp index 538228ce61..622048d5d8 100644 --- a/client/gui_rpc_server_ops.cpp +++ b/client/gui_rpc_server_ops.cpp @@ -645,20 +645,11 @@ void GUI_RPC_CONN::handle_get_project_config(char* buf, MIOFILE& fout) { void GUI_RPC_CONN::handle_get_project_config_poll(char*, MIOFILE& fout) { if (get_project_config_op.error_num) { - int x; - // if the HTTP op failed, it triggers a net status check (to google). - // If this is in progress, act as if the HTTP op is still in progress - // - if (net_status.ref_site_check_in_progress()) { - x = ERR_IN_PROGRESS; - } else { - x = get_project_config_op.error_num; - } fout.printf( "\n" " %d\n" "\n", - x + get_project_config_op.error_num ); } else { fout.printf("%s", get_project_config_op.reply.c_str()); diff --git a/client/net_stats.cpp b/client/net_stats.cpp index bd622b6a4f..3e0c31c08c 100644 --- a/client/net_stats.cpp +++ b/client/net_stats.cpp @@ -258,10 +258,4 @@ void NET_STATUS::poll() { } } -bool NET_STATUS::ref_site_check_in_progress() { - if (need_to_contact_reference_site) return true; - if (gstate.lookup_website_op.error_num == ERR_IN_PROGRESS) return true; - return false; -} - const char *BOINC_RCSID_733b4006f5 = "$Id$"; diff --git a/client/net_stats.h b/client/net_stats.h index b20147c1fd..7eafdd4471 100644 --- a/client/net_stats.h +++ b/client/net_stats.h @@ -91,7 +91,6 @@ public: last_comm_time = 0; } void poll(); - bool ref_site_check_in_progress(); }; /// This is used to access a reference website (like yahoo or google)