0
0
mirror of https://github.com/XTLS/REALITY.git synced 2025-08-30 10:25:32 +00:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.