Project

General

Profile

Actions

Feature #954

closed

X-LIGHTTPD-KBytes-per-second header patch

Added by Terminar almost 18 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Low
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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

mod_proxy_core.patch (773 Bytes) mod_proxy_core.patch Terminar, 2006-12-30 21:57
mod_traffic.c (7.09 KB) mod_traffic.c Terminar, 2006-12-30 22:08
Actions #1

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.

Actions #2

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

Actions #3

Updated by gstrauss almost 8 years ago

  • Status changed from Need Feedback to Patch Pending
  • Target version set to 1.4.46
Actions #4

Updated by gstrauss over 7 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
Actions

Also available in: Atom