mirror of https://github.com/BOINC/boinc.git
exit file xfer backoff on retry request
svn path=/trunk/boinc/; revision=8375
This commit is contained in:
parent
d9ece901de
commit
46507b64fe
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue