diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-08 10:49:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-08 10:49:29 +0000 |
commit | 707357d35e12ee833f358418f380b685100e70b9 (patch) | |
tree | c8e82e1e08b1f759aaddb365097067e9cfeebb18 /src/libserver/http/http_context.h | |
parent | df8519e3234fc78ed59017abdb965ad6c8e341b4 (diff) | |
download | rspamd-707357d35e12ee833f358418f380b685100e70b9.tar.gz rspamd-707357d35e12ee833f358418f380b685100e70b9.zip |
[Rework] Include SSL flag into keepalive hash
Diffstat (limited to 'src/libserver/http/http_context.h')
-rw-r--r-- | src/libserver/http/http_context.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libserver/http/http_context.h b/src/libserver/http/http_context.h index 82ee400b0..f42164dba 100644 --- a/src/libserver/http/http_context.h +++ b/src/libserver/http/http_context.h @@ -74,9 +74,9 @@ struct rspamd_http_context *rspamd_http_context_default (void); * @param host * @return */ -struct rspamd_http_connection *rspamd_http_context_check_keepalive ( - struct rspamd_http_context *ctx, const rspamd_inet_addr_t *addr, - const gchar *host); +struct rspamd_http_connection * +rspamd_http_context_check_keepalive(struct rspamd_http_context *ctx, const rspamd_inet_addr_t *addr, const gchar *host, + bool is_ssl); /** * Prepares keepalive key for a connection by creating a new entry or by reusing existent @@ -86,10 +86,8 @@ struct rspamd_http_connection *rspamd_http_context_check_keepalive ( * @param addr * @param host */ -void rspamd_http_context_prepare_keepalive (struct rspamd_http_context *ctx, - struct rspamd_http_connection *conn, - const rspamd_inet_addr_t *addr, - const gchar *host); +void rspamd_http_context_prepare_keepalive(struct rspamd_http_context *ctx, struct rspamd_http_connection *conn, + const rspamd_inet_addr_t *addr, const gchar *host, bool is_ssl); /** * Pushes a connection to keepalive pool after client request is finished, |