From 213960a04a22bed4d0ffb3cdc9e20439bd1dcc10 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 1 Feb 2022 20:47:35 -0800 Subject: Limit the number of pooled objects --- src/http/async_socket.zig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/http/async_socket.zig') diff --git a/src/http/async_socket.zig b/src/http/async_socket.zig index e5274df76..062a645de 100644 --- a/src/http/async_socket.zig +++ b/src/http/async_socket.zig @@ -603,6 +603,15 @@ pub const SSL = struct { this.completed_connect = true; this.next_handshake_state = .none; this.doPeek(); + if (extremely_verbose) { + const version = std.mem.span(boring.SSL_get_version(this.ssl)); + var hostname = std.mem.span(std.mem.sliceTo(&this.hostname, 0)); + Output.prettyErrorln("[{s}] Handshake complete.\n[{s}] TLS Version: {s}", .{ + hostname, + hostname, + version, + }); + } } fn doPeek(this: *SSL) void { -- cgit v1.2.3