Disable chunk downloading?

Asked by BlueBoxAdmin

I've read here that there's no way to disable chunk downloading in .705 (stable). While it would be easy to get users to enter, say, 1024000 into the Experts>Minimum Chunk Size, I can't believe that all 200 of my hub's users would/could do that.

1. Could this be an optional feature in .706? Downloading large files in 1MiB chunks puts unnecessary wear and tear on external hard drives, which many users have, and have complained about. Disabling this feature (even as an expert option?) would be greatly appreciated if possible?

2. If I were to create a customized installer for my hub, which line specifically enables the chunking? If my customized installer could have a large chunk size, I imagine it would solve these issues users are having with chunk downloading...

Question information

Language:
English Edit question
Status:
Solved
For:
DC++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Pietry (pietry) said :
#1

You can edit the DC++ source code , disable this feature, then distribute your binaries.
But i believe it would be nice if this feature were actually possible to disable ... Since it's not in my power hope that arne will read this question.

Revision history for this message
Pietry (pietry) said :
#2

PS. The installer has nothing to do with this feature, the executable includes it ( you need to edit the source files and recompile to change it ).

Revision history for this message
NoSanity (rpgman11) said :
#3

1 - Yes, having segmented downloading be optional would be REALLY nice. It actually hurts download speed on university networks due to the stopping and restarting. One of the hubs I've seen even bans ApexDC++ and now DC++ > .699 because of the segmented downloading.

2 - The minimum chunk size seems to be bugged (and not secure). The buffer for the number can be overflowed by typing in a long string of numbers (eg. 1000000000000 will instead set the minimum chunk size to zero). Also, I tried to type in 9999999 in the field (which it seemed to accept), this should have made the minimum chunk size about 9.5GB, however, it was still only splitting chunks up in 1.5GB segments.

Revision history for this message
BlueBoxAdmin (blueboxadmin) said :
#4

@NoSanity,

Our (university) hub bans ApexDC++, but not when it emulates DC, which is an option. I rather like the UI of ApexDC++, and use it every now and again. We're still sticking with .699 because of chunk-forcing. I find it interesting that you could possibly set your "minimum" chunk size so high that it reverts to 0.

Even 1.5 GiB segments would work on our hub, as most files fall under that, any any files over are either large (Linux, of course) isos or .dv editing files.

If I or someone on our hub becomes well-versed enough in C++, I'd love to get a customized installer built from the DC++ source that would disable chunk downloading. If other university hub admins would like to help us, or are similarly interested, we would love to hear from you.

Revision history for this message
eMTee (realprogger) said :
#5

Filed as a bug and answered (probably 0 size will be accepted for disable)...

Revision history for this message
Rampage (jilan-shah) said :
#6

Regarding the Segmented downloading a change in the code in "Settingsmanager.cpp" to make the default segment 5GiB which would effectively disable it.
current = setDefault(MIN_SEGMENT_SIZE, 1024);
new = setDefault(MIN_SEGMENT_SIZE, 5242880);

I have tried this but get errors compiling. (tried 2 versions of scons 0.96 and 0.98 and both give different errors which i can not understand)