Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 69090044: code review 69090044: crypto/tls: split connErr to avoid read/write races. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by agl1
Modified:
9 years, 7 months ago
Reviewers:
r, gobot, josharian, bradfitz
CC:
golang-codereviews, r, bradfitz
Visibility:
Public.

Description

crypto/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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -70 lines) Patch
M src/pkg/crypto/tls/conn.go View 1 2 23 chunks +59 lines, -68 lines 0 comments Download
M src/pkg/crypto/tls/handshake_client.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/tls/handshake_server.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
agl1
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 1 month ago (2014-02-26 20:28:41 UTC) #1
r
https://codereview.appspot.com/69090044/diff/90001/src/pkg/crypto/tls/conn.go File src/pkg/crypto/tls/conn.go (right): https://codereview.appspot.com/69090044/diff/90001/src/pkg/crypto/tls/conn.go#newcode542 src/pkg/crypto/tls/conn.go:542: c.in.err = err is there a good reason not ...
10 years, 1 month ago (2014-02-27 23:12:40 UTC) #2
agl1
https://codereview.appspot.com/69090044/diff/90001/src/pkg/crypto/tls/conn.go File src/pkg/crypto/tls/conn.go (right): https://codereview.appspot.com/69090044/diff/90001/src/pkg/crypto/tls/conn.go#newcode542 src/pkg/crypto/tls/conn.go:542: c.in.err = err On 2014/02/27 23:12:40, r wrote: > ...
10 years, 1 month ago (2014-02-28 14:45:22 UTC) #3
bradfitz
LGTM https://codereview.appspot.com/69090044/diff/110001/src/pkg/crypto/tls/conn.go File src/pkg/crypto/tls/conn.go (right): https://codereview.appspot.com/69090044/diff/110001/src/pkg/crypto/tls/conn.go#newcode840 src/pkg/crypto/tls/conn.go:840: if err := c.Handshake(); err != nil { ...
10 years, 1 month ago (2014-02-28 15:54:49 UTC) #4
r
LGTM
10 years, 1 month ago (2014-02-28 21:23:43 UTC) #5
agl1
*** Submitted as https://code.google.com/p/go/source/detail?r=bc595acf7db4 *** crypto/tls: split connErr to avoid read/write races. Currently a write ...
10 years, 1 month ago (2014-03-03 14:01:58 UTC) #6
gobot
This CL appears to have broken the darwin-386-cheney builder.
10 years, 1 month ago (2014-03-03 14:07:10 UTC) #7
agl1
On Mon, Mar 3, 2014 at 9:07 AM, <gobot@golang.org> wrote: > This CL appears to ...
10 years, 1 month ago (2014-03-03 14:14:07 UTC) #8
josharian
Issue 7370 On Monday, March 3, 2014, Adam Langley <agl@golang.org> wrote: > On Mon, Mar ...
10 years, 1 month ago (2014-03-03 14:26:29 UTC) #9
agl1
9 years, 7 months ago (2014-09-09 20:59:03 UTC) #10
Message was sent while issue was closed.
*** Abandoned ***
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b