BUG/MAJOR: check: fix memory leak in "tcp-check connect" over SSL

tcp-check must not reinitialize the SSL stack upon each check!
It's done once after the config parsing and leaks memory and eats
performance when done upon every check.

This bug was introduced in 1.5-dev22, no backport is needed.
This commit is contained in:
Willy Tarreau 2014-02-11 17:53:37 +01:00
parent f522f3d291
commit 852745d548

View File

@ -2091,7 +2091,6 @@ static void tcpcheck_main(struct connection *conn)
#ifdef USE_OPENSSL
if (check->current_step->conn_opts & TCPCHK_OPT_SSL) {
xprt = &ssl_sock;
ssl_sock_prepare_srv_ctx(s, s->proxy);
}
else {
xprt = &raw_sock;