Method and system for resource download
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYongqiang Pang
Life of this patent
Estimating the term…
Abstract
A method for resource download includes steps of: obtaining a download link of a download resource and querying a hash server whether or not stores with a full-text hash of a resource file corresponding to the download link; downloading a head data of the resource file via a source server and calculating a head hash of the resource file if the hash server does not store with the full-text hash of the resource file corresponding to the download link; and adopting a respective download strategy based on whether or not the hash server stores with the full-text hash of the resource file corresponding to the head hash. A system for resource down load is also provided.
Claims16
A method for resource download, comprising steps of:
- through operation of at least one processor of a download client, obtaining a download link of a resource file and inquiring whether a full-text hash of the resource file corresponding to the download link is stored in a hash server;
- if the full-text hash of the resource file corresponding to the download link is not stored in the hash server, through operation of at least one processor, downloading a head data of the resource file via a source server and calculating a head hash of the resource file;
- and
- if a full-text of the resource file corresponding to the head hash is stored in the hash server, through operation of at least one processor adopting a first download strategy;
- if the full-text of the resource file corresponding to the head hash is not stored in the hash server, through operation of at least one processor adopting a second download strategy.
A system for resource download in download client, comprising:
- one or more processors;
- a memory operably coupled to the one or more processors;
- and
- a plurality of program units stored in the memory and configured to be executed by the one or more processors, wherein the plurality of program units further comprise:
- a link obtaining unit configured to obtain a download link of a resource file;
- an inquiring unit configured to inquire a hash server whether a full-text hash of the resource file corresponding to the download link is stored in a hash server and inquire the hash server whether the full-text hash of the resource file corresponding to a head hash thereof is stored in the hash server;
- a download unit configured to, if the full-text hash of the resource file corresponding to the download link is not stored in the hash server, download a head data of the resource file via a source server;
- and if the full-text hash of the resource file corresponding to the head hash is stored in the hash sever, adopt a first download strategy;
- if a full-text hash of the resource file corresponding to the head hash is not stored in the hash sever, adopt a second download strategy;
- and
- a calculation unit configured to calculate the head hash of the resource file downloaded by the download unit.
Dependencies are inferred from the claim text.