Skip to content

Commit dc9a7ce

Browse files
authored
crypto/tls: set const maxUselessRecords to 32 (the same with OpenSSL)
golang/go#58913
1 parent 15efa42 commit dc9a7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const (
4242
maxCiphertextTLS13 = 16384 + 256 // maximum ciphertext length in TLS 1.3
4343
recordHeaderLen = 5 // record header length
4444
maxHandshake = 65536 // maximum handshake we support (protocol max is 16 MB)
45-
maxUselessRecords = 16 // maximum number of consecutive non-advancing records
45+
maxUselessRecords = 32 // maximum number of consecutive non-advancing records
4646
)
4747

4848
// TLS record types.

0 commit comments

Comments
 (0)