From f35a0a67bd0c839d27d5653fc7820efe9e560203 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 1 Jun 2005 22:41:41 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=6280 --- checkin_notes | 12 ++++++++++++ sched/handle_request.C | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 7a7d7286b0..e72bb8d1db 100755 --- a/checkin_notes +++ b/checkin_notes @@ -7323,3 +7323,15 @@ David 1 June 2005 client/ client_types.C + +David 1 June 2005 + - Scheduler: when send the client a delay request because + it's contacted us before min_sendwork_interval, + add an additional 1% to the delay request. + This handles the case where the client's clock is + slightly faster than the servers, + and it repeatedly does an RPC slightly before it should + (from John McLeod) + + sched/ + handle_request.C diff --git a/sched/handle_request.C b/sched/handle_request.C index 39f8a74dcc..ddbc3d6f56 100644 --- a/sched/handle_request.C +++ b/sched/handle_request.C @@ -1074,7 +1074,11 @@ void process_request( ); USER_MESSAGE um(buf, "low"); reply.insert_message(um); - reply.set_delay(config.min_sendwork_interval); + + // the 1.01 is in case client's clock + // is slightly faster than ours + // + reply.set_delay(1.01*config.min_sendwork_interval); } } if (ok_to_send_work) {