exit file xfer backoff on retry request

svn path=/trunk/boinc/; revision=8375
This commit is contained in:
David Anderson 2005-09-30 22:16:07 +00:00
parent d9ece901de
commit 46507b64fe
3 changed files with 15 additions and 2 deletions

View File

@ -12492,3 +12492,11 @@ David 30 Sept 2005
client/
client_types.C,h
pers_file_xfer.C,h
David 30 Sept 2005
- A refinement of the above: if the user manually retries
a file transfer, exit project-level backoff mode
(suggested by John F. Hall)
client/
gui_rpc_server_ops.C

View File

@ -358,13 +358,17 @@ static void handle_file_transfer_op(char* buf, MIOFILE& fout, const char* op) {
return;
}
if (!f->pers_file_xfer) {
PERS_FILE_XFER* pfx = f->pers_file_xfer;
if (!pfx) {
fout.printf("<error>No such transfer waiting</error>\n");
return;
}
if (!strcmp(op, "retry")) {
f->pers_file_xfer->next_request_time = 0;
pfx->next_request_time = 0;
// leave file-level backoff mode
f->project->file_xfer_succeeded(pfx->is_upload);
// and leave project-level backoff mode
} else if (!strcmp(op, "abort")) {
f->pers_file_xfer->abort();
} else {

View File

@ -123,6 +123,7 @@ show_name("Michael Gary");
show_name("Marco Gazzoni");
show_name("Gary Gibson");
show_name("Walt Gribben");
show_name("John F. Hall");
show_name("Jim Harris");
show_name("Volker Hatzenberger");
show_name("Ian Hay");