From dc9a7cef8e8007bce8f73fc2957e57a8b70a4f82 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:20:57 +0000 Subject: [PATCH] crypto/tls: set const maxUselessRecords to 32 (the same with OpenSSL) https://github.com/golang/go/pull/58913 --- common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.go b/common.go index e8aa246..511c7b4 100644 --- a/common.go +++ b/common.go @@ -42,7 +42,7 @@ const ( maxCiphertextTLS13 = 16384 + 256 // maximum ciphertext length in TLS 1.3 recordHeaderLen = 5 // record header length maxHandshake = 65536 // maximum handshake we support (protocol max is 16 MB) - maxUselessRecords = 16 // maximum number of consecutive non-advancing records + maxUselessRecords = 32 // maximum number of consecutive non-advancing records ) // TLS record types.