summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostyantyn Ovechko <fastinetserver@gmail.com>2010-07-18 22:23:26 +0300
committerKostyantyn Ovechko <fastinetserver@gmail.com>2010-07-18 22:23:26 +0300
commit16aeb45578965d635546507c139c59b2d8f32d23 (patch)
treef34166efa143de5c3afca228ee97aba626860fae /segget/phase.h
parentSplit provide_segment function into 3 parts (diff)
downloadidfetch-16aeb45578965d635546507c139c59b2d8f32d23.tar.gz
idfetch-16aeb45578965d635546507c139c59b2d8f32d23.tar.bz2
idfetch-16aeb45578965d635546507c139c59b2d8f32d23.zip
Improve network selection algorithm.
0) Segget starts from the highest priority networks. 1) Segget tries local mirrors and mirrors provided by proxy-fetchers first. 2) If no success and requests to proxy-fetchers are allowed => segget selects proxy-fetcher and requests from it. 3) If proxy-fetcher replied that file has been downloaded => segget starts from step 1 again. 4) If no download started till now and remote-mirrors are allowed => segget selects a remote network and selects a mirror from it. 5) If no success on step 4, segget switches to lower priority networks
Diffstat (limited to 'segget/phase.h')
0 files changed, 0 insertions, 0 deletions