]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Rename "handshake" timeout to "client-hs"
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 17 Nov 2023 17:03:20 +0000 (18:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Nov 2023 17:09:41 +0000 (18:09 +0100)
Use a more specific name for this timeout to distinguish it from a possible
future one on the server side.
Also update the documentation.

doc/configuration.txt
include/haproxy/proxy-t.h
src/proxy.c
src/quic_conn.c
src/session.c

index 8c81bd95ab902c56e78611a2e8ad5a6adc1e87f0..f8df7d3f181b5b5907b48539bbb0e5c65deac310 100644 (file)
@@ -4609,8 +4609,8 @@ tcp-response inspect-delay                X (!)      -         X         X
 timeout check                             X          -         X         X
 timeout client                            X          X         X         -
 timeout client-fin                        X          X         X         -
+timeout client-hs                         X          X         X         -
 timeout connect                           X          -         X         X
-timeout handshake                         X          X         X         -
 timeout http-keep-alive                   X          X         X         X
 timeout http-request                      X          X         X         X
 timeout queue                             X          -         X         X
@@ -14431,6 +14431,20 @@ timeout client-fin <timeout>
   See also : "timeout client", "timeout server-fin", and "timeout tunnel".
 
 
+timeout client-hs <timeout>
+  Set the maximum time to wait for a client TLS handshake to complete. This is
+  usable both for TCP and QUIC connections.
+  May be used in sections :   defaults | frontend | listen | backend
+                                 yes   |    yes   |   yes  |   no
+  Arguments :
+    <timeout> is the timeout value specified in milliseconds by default, but
+              can be in any other unit if the number is suffixed by the unit,
+              as explained at the top of this document.
+
+  If this handshake timeout is not set, this is the client timeout which is used
+  in place.
+
+
 timeout connect <timeout>
   Set the maximum time to wait for a connection attempt to a server to succeed.
   May be used in sections :   defaults | frontend | listen | backend
@@ -14457,19 +14471,6 @@ timeout connect <timeout>
   See also: "timeout check", "timeout queue", "timeout server", "timeout tarpit".
 
 
-timeout handshake <timeout>
-  Set the maximum time to wait for a client TLS handshake to complete. This is
-  usable both for TCP and QUIC connections.
-  May be used in sections :   defaults | frontend | listen | backend
-                                 yes   |    yes   |   yes  |   no
-  Arguments :
-    <timeout> is the timeout value specified in milliseconds by default, but
-              can be in any other unit if the number is suffixed by the unit,
-              as explained at the top of this document.
-
-  If this handshake timeout is not set, this is the client timeout which is used
-  in place.
-
 timeout http-keep-alive <timeout>
   Set the maximum allowed time to wait for a new HTTP request to appear
   May be used in sections :   defaults | frontend | listen | backend
index e07ebf03dfae1c93933d2e2311471733cf7861e6..a0db8fad9a05d9405a65fa377c991322f75847a8 100644 (file)
@@ -338,7 +338,7 @@ struct proxy {
                int queue;                      /* queue timeout, defaults to connect if unspecified */
                int connect;                    /* connect timeout (in ticks) */
                int server;                     /* server I/O timeout (in ticks) */
-               int handshake;                  /* maximum time for handshake completion */
+               int client_hs;                  /* maximum time for client handshake completion */
                int httpreq;                    /* maximum time for complete HTTP request */
                int httpka;                     /* maximum time for a new HTTP request when using keep-alive */
                int check;                      /* maximum time for complete check */
index 51823b378189de48192fe769d8ddf88035a49a3c..001fe0344bdf8d07fec819c2e733acbaead4c486 100644 (file)
@@ -524,9 +524,9 @@ static int proxy_parse_timeout(char **args, int section, struct proxy *proxy,
                tv = &proxy->timeout.tarpit;
                td = &defpx->timeout.tarpit;
                cap = PR_CAP_FE | PR_CAP_BE;
-       } else if (strcmp(args[0], "handshake") == 0) {
-               tv = &proxy->timeout.handshake;
-               td = &defpx->timeout.handshake;
+       } else if (strcmp(args[0], "client-hs") == 0) {
+               tv = &proxy->timeout.client_hs;
+               td = &defpx->timeout.client_hs;
                cap = PR_CAP_FE;
        } else if (strcmp(args[0], "http-keep-alive") == 0) {
                tv = &proxy->timeout.httpka;
@@ -1801,7 +1801,7 @@ static int proxy_defproxy_cpy(struct proxy *curproxy, const struct proxy *defpro
 
        if (curproxy->cap & PR_CAP_FE) {
                curproxy->timeout.client = defproxy->timeout.client;
-               curproxy->timeout.handshake = defproxy->timeout.handshake;
+               curproxy->timeout.client_hs = defproxy->timeout.client_hs;
                curproxy->timeout.clientfin = defproxy->timeout.clientfin;
                curproxy->timeout.tarpit = defproxy->timeout.tarpit;
                curproxy->timeout.httpreq = defproxy->timeout.httpreq;
index 8792310c7b82dac0fc1d3592500849d39d48e0cc..018221885ec300f58dfab3356b5a0e4f553032b9 100644 (file)
@@ -1764,7 +1764,7 @@ static int quic_conn_init_idle_timer_task(struct quic_conn *qc,
        TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
 
 
-       timeout = px->timeout.handshake ? px->timeout.handshake : px->timeout.client;
+       timeout = px->timeout.client_hs ? px->timeout.client_hs : px->timeout.client;
        qc->idle_timer_task = task_new_here();
        if (!qc->idle_timer_task) {
                TRACE_ERROR("Idle timer task allocation failed", QUIC_EV_CONN_NEW, qc);
index c090c7c040c1b649c9d5f70750a490e6ff56952f..3d40ead695a8fe4061468a109e9a6b66b9eef6fb 100644 (file)
@@ -281,7 +281,7 @@ int session_accept_fd(struct connection *cli_conn)
        if (cli_conn->flags & (CO_FL_WAIT_XPRT | CO_FL_EARLY_SSL_HS)) {
                int timeout;
                int clt_tmt = p->timeout.client;
-               int hs_tmt = p->timeout.handshake;
+               int hs_tmt = p->timeout.client_hs;
 
                if (unlikely((sess->task = task_new_here()) == NULL))
                        goto out_free_sess;