diff options
author | 2022-02-01 20:47:35 -0800 | |
---|---|---|
committer | 2022-02-01 20:47:35 -0800 | |
commit | 213960a04a22bed4d0ffb3cdc9e20439bd1dcc10 (patch) | |
tree | bbbc7d983496fc6ff8a4c0136bfbaaceb0f30eb9 /src/http/async_socket.zig | |
parent | 170e58a99db61536c345ce2dd41693aea57cd359 (diff) | |
download | bun-213960a04a22bed4d0ffb3cdc9e20439bd1dcc10.tar.gz bun-213960a04a22bed4d0ffb3cdc9e20439bd1dcc10.tar.zst bun-213960a04a22bed4d0ffb3cdc9e20439bd1dcc10.zip |
Limit the number of pooled objects
Diffstat (limited to 'src/http/async_socket.zig')
-rw-r--r-- | src/http/async_socket.zig | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |