Skip to content

Commit

Permalink
Add WS and WSS protocols for connection cache selector tfw_cli_cache() -
Browse files Browse the repository at this point in the history
it is mainly used on connection freeing since WS(S) is upgraded from
HTTP(S).
  • Loading branch information
krizhanovsky committed Aug 17, 2022
1 parent d9b82bb commit e2a1dc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fw/sock_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e2a1dc7

Please sign in to comment.