File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / outdated / traffic-shaping.txt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (10 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

===============
Traffic Shaping
===============

------------
Module: core
------------

:Author: Jan Kneschke
:Date: $Date: 2013/10/14 10:32:48 $
:Revision: $Revision: 1.1.1.1 $

:abstract:
  limiting bandwidth usage

.. meta::
  :keywords: lighttpd, bandwidth limit, traffic shaping

.. contents:: Table of Contents

Description
===========

Starting with 1.3.8, lighttpd supports limiting the bandwidth for
a single connection or config context like a virtual host or a URL.

Options
=======

:connection.kbytes-per-second:
  limit the throughput for each single connection to the given
  limit in kbyte/s

  default: 0 (no limit)

:server.kbytes-per-second:
  limit the throughput for all connections to the given limit
  in kbyte/s

  if you want to specify a limit for a special virtual server
  use: ::

    $HTTP["host"] == "www.example.org" {
      server.kbytes-per-second = 128
    }

  which will override the default for this host.

  default: 0 (no limit)

Additional Notes
================

Keep in mind that a limit below 32kb/s might actually limit the traffic to 32kb/s. This
is caused by the size of the TCP send buffer.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>