Adding Chunk (connection) during download
|Category:||General||Estimated time:||4.00 hours|
|Target version:||040 - FarfarAway|
While downloading a file, if the host is slow on each connection, it would help if the user could increase the number of connections. Several products do this.
One downloader allows adding connections, and when a chunk is done, the chunk with the largest remaining download is split, so all of the connections are always busy.
I do not know if there is a better way to do this than to stop one of the connections and divide the remaining download for that chunk into two parts and start a chunk for each. The alternative is to make the IO completion code for each packet check that it has not downloaded into the new chunk's part of the file.