]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] splice: add configuration options and set global.maxpipes
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 20:44:07 +0000 (21:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 20:44:07 +0000 (21:44 +0100)
commit66aa61f76b7b3c7d8a5f4dbab8b0ca626d5b963e
tree0820b1f86957945d9b32f2e4786350491a9cd9bd
parent3ec79b9c4245ec40ad880b131586151a88129112
[MEDIUM] splice: add configuration options and set global.maxpipes

Three new options have been added when CONFIG_HAP_LINUX_SPLICE is
set :
  - splice-request
  - splice-response
  - splice-auto

They are used to enable splicing per frontend/backend. They are also
supported in defaults sections. The "splice-auto" option is meant to
automatically turn splice on for buffers marked as fast streamers.
This should save quite a bunch of file descriptors.

It was required to add a new "options2" field to the proxy structure
because the original "options" is full.

When global.maxpipes is not set, it is automatically adjusted to
the max of the sums of all frontend's and backend's maxconns for
those which have at least one splice option enabled.
include/types/proxy.h
src/cfgparse.c
src/haproxy.c