From: Tim Duesterhus Date: Fri, 13 Mar 2020 11:34:24 +0000 (+0100) Subject: MEDIUM: proxy_protocol: Support sending unique IDs using PPv2 X-Git-Tag: v2.2-dev5~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6e0c8a8;p=thirdparty%2Fhaproxy.git MEDIUM: proxy_protocol: Support sending unique IDs using PPv2 This patch adds the `unique-id` option to `proxy-v2-options`. If this option is set a unique ID will be generated based on the `unique-id-format` while sending the proxy protocol v2 header and stored as the unique id for the first stream of the connection. This feature is meant to be used in `tcp` mode. It works on HTTP mode, but might result in inconsistent unique IDs for the first request on a keep-alive connection, because the unique ID for the first stream is generated earlier than the others. Now that we can send unique IDs in `tcp` mode the `%ID` log variable is made available in TCP mode. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 57f777a78a..cc5fbf2d06 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -12657,13 +12657,23 @@ send-proxy-v2 this section and send-proxy" option of the "bind" keyword. proxy-v2-options