nginx + DSCP (Differentied services)
mdounin at mdounin.ru
Tue Dec 16 18:48:28 UTC 2014
On Tue, Dec 16, 2014 at 05:24:42PM +0000, Dani Bento wrote:
> Thanks for the reply.
> We looked at your module and found it interesting that you
> avoided to change the core.
> Our code marks each buffer flush individually. We can control the ToS
> for each request even when using keep-alive (using the X-Accel-ClassID
> header). After the response has been sent the ToS is reset back to the
> default (location configuration).
> In your module you mark only at the beginning of the response (at the
> header filter stage). Don't you have problems with different
> requests using the same connection?
If you want ToS to be reset, you can use "ip_tos 0x00;" by
default, see example here:
> You can only have one ToS mark for
> each location if you relying on a static configuration. Can it be
> set by variable "tos $class_id" ?
Not now, but this can be added if needed - like it was recently
added to the "expires" directive, see
More information about the nginx-devel