Descriptioncrypto/tls: split connErr to avoid read/write races.
Currently a write error will cause future reads to return that same error.
However, there may have been extra information from a peer pending on
the read direction that is now unavailable.
This change splits the single connErr into errors for the read, write and
handshake. (Splitting off the handshake error is needed because both read
and write paths check the handshake error.)
Fixes issue 7414.
Patch Set 1 #Patch Set 2 : diff -r ddb0a733af79 https://code.google.com/p/go/ #
Total comments: 2
Patch Set 3 : diff -r 3d37606fb793 https://code.google.com/p/go/ #
Total comments: 1
Patch Set 4 : diff -r 63f448126b28 https://code.google.com/p/go/ #
MessagesTotal messages: 10
|