Descriptioncrypto/tls: ignore empty TLS records.
OpenSSL can be configured to send empty records in order to randomise
the CBC IV. This is an early version of 1/n-1 record splitting (that Go
does) and is quite reasonable, but it results in tls.Conn.Read
returning (0, nil).
This change ignores up to 100 consecutive, empty records to avoid
returning (0, nil) to callers.
Fixes 5309.
Patch Set 1 #Patch Set 2 : diff -r 13e00572ed0b https://code.google.com/p/go/ #
Total comments: 6
Patch Set 3 : diff -r 13e00572ed0b https://code.google.com/p/go/ #Patch Set 4 : diff -r 7e0e60679942 https://code.google.com/p/go/ #
MessagesTotal messages: 12
|