From 271d1f5cbfbbea01dba49f3532883816193c823e Mon Sep 17 00:00:00 2001 From: Alexander K Date: Wed, 17 Aug 2022 15:19:12 +0300 Subject: [PATCH] Add WS and WSS protocols for connection cache selector tfw_cli_cache() - it is mainly used on connection freeing since WS(S) is upgraded from HTTP(S). --- fw/sock_clnt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fw/sock_clnt.c b/fw/sock_clnt.c index 7648bad98c..fa8776717c 100644 --- a/fw/sock_clnt.c +++ b/fw/sock_clnt.c @@ -53,8 +53,10 @@ tfw_cli_cache(int type) case TFW_FSM_H2: return tfw_h2_conn_cache; case TFW_FSM_HTTPS: + case TFW_FSM_WSS: return tfw_https_conn_cache; case TFW_FSM_HTTP: + case TFW_FSM_WS: return tfw_h1_conn_cache; default: BUG();