]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: action: new '(http-request|tcp-request content) do-resolve' action
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 21 Jan 2019 07:34:50 +0000 (08:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2019 09:41:52 +0000 (11:41 +0200)
commit333939c2eee8f9dbfe11f66073e52892b38347e7
treee68f5c40481eee26d8d7e933afa898c562ac6dc3
parent0b9ce82dfa2d6a78943f1c8d416b6797c47b1da0
MINOR: action: new '(http-request|tcp-request content) do-resolve' action

The 'do-resolve' action is an http-request or tcp-request content action
which allows to run DNS resolution at run time in HAProxy.
The name to be resolved can be picked up in the request sent by the
client and the result of the resolution is stored in a variable.
The time the resolution is being performed, the request is on pause.
If the resolution can't provide a suitable result, then the variable
will be empty. It's up to the admin to take decisions based on this
statement (return 503 to prevent loops).

Read carefully the documentation concerning this feature, to ensure your
setup is secure and safe to be used in production.

This patch creates a global counter to track various errors reported by
the action 'do-resolve'.
doc/configuration.txt
include/proto/action.h
include/proto/dns.h
include/types/action.h
include/types/stats.h
include/types/stream.h
src/action.c
src/dns.c
src/proto_http.c
src/stats.c
src/stream.c