Closed Bug 759659 Opened 8 years ago Closed 7 years ago

Limit the speed of a httpd.js server

Categories

(Testing :: General, defect)

defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: padenot, Assigned: padenot)

References

Details

Attachments

(1 file)

To test various things related to buffering for the audio and video elements, we need to be able to control the network speed of a httpd.js server (in the context of a mochitest, in particular).

With this patch, one can hit the /server/rate?100 on the server to be able to limit the network speed to 100kB/s, using an XHR. /server/rate?0 removes the throttling. No throttling by default.
Attachment #628238 - Flags: feedback?(jwalden+bmo)
Comment on attachment 628238 [details] [diff] [review]
Patch v0 : add a throttling feature to httpd.js

This patch is wrong. I'll upload a better approach in the following days.
Attachment #628238 - Flags: feedback?(jwalden+bmo)
I don't need this anymore.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Component: httpd.js → General
You need to log in before you can comment on or make changes to this bug.