diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-09 11:58:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-09 11:58:55 +0000 |
commit | 4fe64bdcb51eb13b732bfcab0ffb321b16e91395 (patch) | |
tree | bdcceeada4ddd0f329b0d21176569165743274d3 /src/libserver/http | |
parent | 354ad43417e0c1264ab198cb1b54de2240a44fa4 (diff) | |
download | rspamd-4fe64bdcb51eb13b732bfcab0ffb321b16e91395.tar.gz rspamd-4fe64bdcb51eb13b732bfcab0ffb321b16e91395.zip |
[Minor] Fix ssl connection reuse
Diffstat (limited to 'src/libserver/http')
-rw-r--r-- | src/libserver/http/http_connection.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libserver/http/http_connection.c b/src/libserver/http/http_connection.c index e82c543c2..afd685ae0 100644 --- a/src/libserver/http/http_connection.c +++ b/src/libserver/http/http_connection.c @@ -1264,13 +1264,6 @@ rspamd_http_connection_new_client_keepalive (struct rspamd_http_context *ctx, priv = conn->priv; - if (priv->ssl) { - rspamd_ssl_connection_restore_handlers (priv->ssl, - rspamd_http_event_handler, - rspamd_http_ssl_err_handler, - conn); - } - return conn; } @@ -2353,6 +2346,13 @@ rspamd_http_connection_write_message_common (struct rspamd_http_connection *conn return FALSE; } } + else { + /* Just restore SSL handlers */ + rspamd_ssl_connection_restore_handlers (priv->ssl, + rspamd_http_event_handler, + rspamd_http_ssl_err_handler, + conn); + } } } else { |