Feature #954
closedX-LIGHTTPD-KBytes-per-second header patch
Description
This is an idea for 1.5.0-svn (but needs patch from #953). Setting speed per-connection from backend is possible now.
Example for php:
header("Content-Type: application/octet-stream");
header('Content-Disposition: attachment; filename="test.dat"');
header("X-LIGHTTPD-KBytes-per-second: 50");
header("X-Sendfile: <path-to-file>/test.dat");
?>
I will attach another file which does this via module, but i am not sure which handler is correct for this.
Files
Updated by gstrauss over 8 years ago
- Description updated (diff)
- Status changed from New to Need Feedback
- Assignee deleted (
jan) - Priority changed from Normal to Low
Is there still a desire for this feature?
If so, it should probably be implemented as a way to lower any existing rate limit, but not to raise the currently configured limit.
Updated by gstrauss over 8 years ago
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_TrafficShaping has an attachment for a mod_speed.c which attempted to implement this in lighttpd 1.5.0
Updated by gstrauss almost 8 years ago
- Status changed from Need Feedback to Patch Pending
- Target version set to 1.4.46
Updated by gstrauss over 7 years ago
- Status changed from Patch Pending to Fixed
- % Done changed from 0 to 100
Applied in changeset e2c19c3680c95dc9f7a50e491bfef18b23d43ddc.
Also available in: Atom