Closed Bug 353182 Opened 18 years ago Closed 8 years ago

Teach nsIncrementalDownload to throttle download rate

Categories

(Core :: Networking, defect)

defect
Not set
major

Tracking

()

RESOLVED WONTFIX

People

(Reporter: darin.moz, Unassigned)

References

Details

Attachments

(1 file)

Teach nsIncrementalDownload to throttle download rate

i.e., deal with bug 352853 in a smarter way.
Attached patch v1 patchSplinter Review
Here's a fairly simple patch for this bug.  I chose to make the interval between ODA events proportional to mInterval so that 1) I would not need a new configuration parameter, and 2) so that the period between ODA events would not be larger than mInterval.  The value is capped to 3 seconds to help avoid the problem of servers dropping the connection.
Attachment #239074 - Flags: review?(cbiesinger)
This patch measures download speed - how about, if this is high enough (definitely  not dial up), you just stop throttling completely?
This way, people with real broadband (>1mbps?) will not hold the server busy any longer than needed.
I agree.  That would be better.
(In reply to comment #2)
> This patch measures download speed 

It actually doesn't...
Attachment #239074 - Flags: review?(cbiesinger) → review+
-> reassign to default owner
Assignee: darin.moz → nobody
I'm going to wontfix this, but I would take a patch letting a normal http channel do throttling - then that could replace the incremental downloader
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: