]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEBUG: ssl: export ssl_sock_close() to see its symbol resolved in profiling
authorWilly Tarreau <w@1wt.eu>
Thu, 13 May 2021 08:11:03 +0000 (10:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 May 2021 08:11:03 +0000 (10:11 +0200)
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.

src/ssl_sock.c

index 1a2d7be49cf7f939641f1b44bf4d9bf56f6bde00..58f0413881b07bef2c9d8d73c09500671277d407 100644 (file)
@@ -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;