X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=octopi%2Flibrary%2Ftentacles%2Frecursive_file_copy.cpp;h=8464ed4e073583f097ad2ced86e9921e735095a1;hb=f26564a5505401f61c1aa22f121a77e629810fc9;hp=40e4f0afa62fbd93f3a6aac69f6e5d8256ab5622;hpb=f777dd74b6f23349b05c99750a4b6f3492f4cd99;p=feisty_meow.git diff --git a/octopi/library/tentacles/recursive_file_copy.cpp b/octopi/library/tentacles/recursive_file_copy.cpp index 40e4f0af..8464ed4e 100644 --- a/octopi/library/tentacles/recursive_file_copy.cpp +++ b/octopi/library/tentacles/recursive_file_copy.cpp @@ -49,6 +49,11 @@ namespace octopi { const int MAX_CHUNK_RFC_COPY_HIER = 1 * MEGABYTE; // maximum size for each transfer chunk. +const int EXPECTED_MAXIMUM_TRANSFER_TIME = 10 * HOUR_ms; + // how long do we allow the scanned file lists to stay relevant. + // we allow it a long time, since this is a copy and not an active + // synchronization. + recursive_file_copy::~recursive_file_copy() {} const char *recursive_file_copy::outcome_name(const outcome &to_name) @@ -85,7 +90,7 @@ outcome recursive_file_copy::copy_hierarchy(int transfer_mode, ring_leader.add_tentacle(tran); outcome add_ret = tran->add_correspondence("snootums", source_dir, - 10 * MINUTE_ms); + EXPECTED_MAXIMUM_TRANSFER_TIME); if (add_ret != tentacle::OKAY) RETURN_ERROR_RFC("failed to add the correspondence", NOT_FOUND);