MINOR: payload: add new sample fetch functions to process distcc protocol
authorWilly Tarreau <w@1wt.eu>
Fri, 13 Oct 2017 09:03:15 +0000 (11:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Oct 2017 09:47:19 +0000 (11:47 +0200)
commitd716f9bacfa6c363c5eb52e98b536c140a671392
tree1718fa87d22bd51c8425521a3d59b62655bb5f2f
parentff2b7afe0b72874e158400aaa58f413dda030489
MINOR: payload: add new sample fetch functions to process distcc protocol

When using haproxy in front of distccd, it's possible to provide significant
improvements by only connecting when the preprocessing is completed, and by
selecting different farms depending on the payload size. This patch provides
two new sample fetch functions :

      distcc_param(<token>[,<occ>]) : integer
      distcc_body(<token>[,<occ>]) : binary
doc/configuration.txt
src/payload.c