diff options
author | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-20 05:20:15 +0300 |
---|---|---|
committer | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-20 05:20:15 +0300 |
commit | 3bf21e2799330745f4b4852abb0e7e4d09f6e318 (patch) | |
tree | db532d9c7297b9892231e5bf883f3164d2820d6e /segget | |
parent | Fix: error with connection counters (diff) | |
download | idfetch-3bf21e2799330745f4b4852abb0e7e4d09f6e318.tar.gz idfetch-3bf21e2799330745f4b4852abb0e7e4d09f6e318.tar.bz2 idfetch-3bf21e2799330745f4b4852abb0e7e4d09f6e318.zip |
Consider distfile failed if one of its segments is failed
Diffstat (limited to 'segget')
-rw-r--r-- | segget/connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/segget/connection.cpp b/segget/connection.cpp index c669f17..89bfa4c 100644 --- a/segget/connection.cpp +++ b/segget/connection.cpp @@ -144,7 +144,8 @@ void Tconnection::stop(int connection_result){ Pcurr_mirror->stop(time_left_from(connection_array[connection_num].start_time),0); if (segment->try_num>=settings.max_tries){ segment->status=SFAILED; -// segm + segment->parent_distfile->status=DFAILED; + error_log("Segget failed to download distfile: "+segment->parent_distfile->name); error_log("Segment:"+segment->file_name+" has reached max_tries limit - segment.status set to FAILED"); } else segment->status=SWAITING; |