From: Willy Tarreau Date: Thu, 13 May 2021 08:11:03 +0000 (+0200) Subject: DEBUG: ssl: export ssl_sock_close() to see its symbol resolved in profiling X-Git-Tag: v2.4.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832e242b1f9da38d77d580091f741394dad933c8;p=thirdparty%2Fhaproxy.git DEBUG: ssl: export ssl_sock_close() to see its symbol resolved in profiling This function is one of the few high-profile, unresolved ones in the memory profile output, let's have it resolve to ease matching of SSL allocations, which are not easy to follow. --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 1a2d7be49c..58f0413881 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -6203,7 +6203,7 @@ static size_t ssl_sock_from_buf(struct connection *conn, void *xprt_ctx, const s goto leave; } -static void ssl_sock_close(struct connection *conn, void *xprt_ctx) { +void ssl_sock_close(struct connection *conn, void *xprt_ctx) { struct ssl_sock_ctx *ctx = xprt_ctx;