crypto/tls: set const maxUselessRecords to 32 (the same with OpenSSL)

https://github.com/golang/go/pull/58913
This commit is contained in:
RPRX
2023-03-07 15:20:57 +00:00
committed by GitHub
parent 15efa424b2
commit dc9a7cef8e
+1 -1
View File
@@ -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.