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) {