- client: tweak to the above: never ask for work if buffer > max.

This is needed to prevent projects that use next_rpc_delay
    from queuing unbounded work.


svn path=/trunk/boinc/; revision=26003
This commit is contained in:
David Anderson 2012-08-10 18:49:22 +00:00
parent ff1a391ced
commit 9fa75d5044
2 changed files with 10 additions and 0 deletions

View File

@ -5401,3 +5401,11 @@ David 10 Aug 2012
client/
work_fetch.cpp,h
David 10 Aug 2012
- client: tweak to the above: never ask for work if buffer > max.
This is needed to prevent projects that use next_rpc_delay
from queuing unbounded work.
client/
work_fetch.cpp

View File

@ -232,6 +232,8 @@ PROJECT* RSC_WORK_FETCH::choose_project_hyst(bool strict) {
PROJECT* pbest = NULL;
if (strict) {
if (saturated_time > gstate.work_buf_min()) return NULL;
} else {
if (saturated_time > gstate.work_buf_total()) return NULL;
}
if (saturated_time > gstate.work_buf_total()) return NULL;