Limit the number of pooled objects

This commit is contained in:
Jarred Sumner
2022-02-01 20:47:35 -08:00
parent 170e58a99d
commit 213960a04a
12 changed files with 61 additions and 14 deletions

View File

@@ -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 {