diff options
| author | Amaury Denoyelle <adenoyelle@haproxy.com> | 2021-01-06 17:03:27 +0100 |
|---|---|---|
| committer | Amaury Denoyelle <adenoyelle@haproxy.com> | 2021-02-12 12:48:11 +0100 |
| commit | 9b626e3c19afa1ad1ecc623df97dc71abd7fc2a9 (patch) | |
| tree | b78254968eac304a95b27b9734df9165151b7a4f /include/haproxy/connection-t.h | |
| parent | 293dcc400e2d5cbe4caf92135cee7a7159bb673f (diff) | |
| download | haproxy-9b626e3c19afa1ad1ecc623df97dc71abd7fc2a9.tar.gz | |
MINOR: connection: use sni as parameter for srv conn hash
The sni parameter is an input to the server connection hash. Do not add
anymore connections with dynamic sni in the private list. Thus, it is
now possible to reuse a server connection if they use the same sni.
Diffstat (limited to 'include/haproxy/connection-t.h')
| -rw-r--r-- | include/haproxy/connection-t.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/haproxy/connection-t.h b/include/haproxy/connection-t.h index a8239b43f..9ee00819b 100644 --- a/include/haproxy/connection-t.h +++ b/include/haproxy/connection-t.h @@ -33,6 +33,7 @@ #include <import/xxhash.h> #include <haproxy/api-t.h> +#include <haproxy/buf-t.h> #include <haproxy/listener-t.h> #include <haproxy/obj_type-t.h> #include <haproxy/port_range-t.h> @@ -471,8 +472,7 @@ struct conn_stream { * CAUTION! Always update CONN_HASH_PARAMS_TYPE_COUNT when adding a new entry. */ enum conn_hash_params_t { - /* to remove as soon as one useful parameter is present */ - CONN_HASH_DUMMY_PARAM, + CONN_HASH_PARAMS_TYPE_SNI = 0x1, }; #define CONN_HASH_PARAMS_TYPE_COUNT 1 @@ -488,6 +488,7 @@ enum conn_hash_params_t { */ struct conn_hash_params { struct server *srv; + XXH64_hash_t *sni_prehash; }; /* This structure describes a connection with its methods and data. |
