Feature #2706

Use the file length (round down to multiple of 500KB) as the resume point when one connection

Added by drbits about 10 years ago. Updated about 10 years ago.

Status:NewStart date:12/04/2010
Priority:NormalDue date:
Assignee:-% Done:


Target version:040 - FarfarAway
Resolution:To be discussed


When JDownloader or the OS crashes, the JDownloader database may be out of date.

When multiple connections (chunkload) is not used, the .part file length is an accurate indicator of the data that has been downloaded and saved to disk (not stuck in a cache). The length of the saved data should be a multiple of the buffersize. If system failure causes loss of data, the file size should be rounded down to a multiple of buffersize.

It is possible to save multi-chunk files to .parts files (to distinguish them). Another reliable indicator is when there are at least a buffer length (defaults to 500KB) of 0x00 bytes (in a row) in the file. This assumes that the Chunksize is set to a multiple of the buffersize and that files shorter than buffersize are never chunked.

Also available in: Atom PDF