]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: general: fix example in set-timeout
authorAlex <al-haproxy@none.at>
Tue, 27 Apr 2021 10:57:07 +0000 (12:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Apr 2021 09:08:35 +0000 (11:08 +0200)
The alternative arguments are always in curly brackets, let's fix it for
set-timeout.
The Example in set-timeout does not have the one of the required argument.

This commit makes the PR https://github.com/cbonte/haproxy-dconv/pull/34
obsolete.

doc/configuration.txt

index 0453380f65fce68a73f98f5720f250535cb7ef0f..0808433ec9a538739137edc72c07aa2c9bfb1c35 100644 (file)
@@ -6571,7 +6571,7 @@ http-request set-src-port <expr> [ { if | unless } <condition> ]
   the address family supports a port, otherwise it forces the source address to
   IPv4 "0.0.0.0" before rewriting the port.
 
-http-request set-timeout server|tunnel { <timeout> | <expr> }
+http-request set-timeout { server | tunnel } { <timeout> | <expr> }
                                        [ { if | unless } <condition> ]
 
   This action overrides the specified "server" or "tunnel" timeout for the
@@ -6586,8 +6586,8 @@ http-request set-timeout server|tunnel { <timeout> | <expr> }
   results.
 
   Example:
-    http-request set-timeout server 5s
-    http-request set-timeout hdr(host),map_int(host.lst)
+    http-request set-timeout tunnel 5s
+    http-request set-timeout server req.hdr(host),map_int(host.lst)
 
 http-request set-tos <tos> [ { if | unless } <condition> ]