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

Issue 163052: code review 163052: Fix netFD.Close races demonstrated in Issues 321 and 271. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by dho
Modified:
15 years, 3 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

Fix netFD.Close races demonstrated in Issues 321 and 271.

Patch Set 1 #

Patch Set 2 : code review 163052: Addresses some race conditions in calling Close. #

Total comments: 1

Patch Set 3 : code review 163052: Fix netFD.Close races #

Patch Set 4 : code review 163052: Fix netFD.Close races #

Total comments: 10

Patch Set 5 : code review 163052: Fix netFD.Close races #

Patch Set 6 : code review 163052: Fix netFD.Close races #

Patch Set 7 : code review 163052: Fix netFD.Close races #

Patch Set 8 : code review 163052: Fix netFD.Close races #

Patch Set 9 : code review 163052: Fix netFD.Close races demonstrated in Issues 321 and 271. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -75 lines) Patch
M src/pkg/net/fd.go View 1 2 3 4 5 6 18 chunks +72 lines, -61 lines 0 comments Download
M src/pkg/net/sock.go View 3 4 4 chunks +18 lines, -6 lines 0 comments Download
M src/pkg/net/tcpsock.go View 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/net/udpsock.go View 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/unixsock.go View 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 27
dho
Hello rsc, agl (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 3 months ago (2009-12-01 04:41:06 UTC) #1
rsc
can you reproduce #360? does this fix it? On Mon, Nov 30, 2009 at 20:41, ...
15 years, 3 months ago (2009-12-01 04:53:28 UTC) #2
dho
2009/11/30 Russ Cox <rsc@golang.org>: > can you reproduce #360? does this fix it? Yes, and ...
15 years, 3 months ago (2009-12-01 04:55:11 UTC) #3
rsc
Thanks for looking into this. I'm worried that this is just pushing the races down ...
15 years, 3 months ago (2009-12-01 05:22:40 UTC) #4
agl
On Mon, Nov 30, 2009 at 9:22 PM, <rsc@golang.org> wrote: > also, are any of ...
15 years, 3 months ago (2009-12-01 05:42:02 UTC) #5
cw
On Tue, Dec 01, 2009 at 05:22:40AM +0000, rsc@golang.org wrote: > Thanks for looking into ...
15 years, 3 months ago (2009-12-01 10:17:53 UTC) #6
dho
2009/12/1 Chris Wedgwood <cw@f00f.org>: > On Tue, Dec 01, 2009 at 05:22:40AM +0000, rsc@golang.org wrote: ...
15 years, 3 months ago (2009-12-01 13:45:41 UTC) #7
dho
2009/12/1 Devon H. O'Dell <devon.odell@gmail.com>: > 2009/12/1 Chris Wedgwood <cw@f00f.org>: >> It's still not working. ...
15 years, 3 months ago (2009-12-01 13:56:49 UTC) #8
dho
Hello rsc, agl, cw (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 3 months ago (2009-12-01 15:08:03 UTC) #9
dho
On 2009/12/01 15:08:03, dho wrote: > Hello rsc, agl, cw (cc: mailto:golang-dev@googlegroups.com), > > I'd ...
15 years, 3 months ago (2009-12-01 15:09:23 UTC) #10
rsc
Looks pretty good, thanks. A few small comments. http://codereview.appspot.com/163052/diff/1016/1017 File src/pkg/net/fd.go (right): http://codereview.appspot.com/163052/diff/1016/1017#newcode120 src/pkg/net/fd.go:120: // ...
15 years, 3 months ago (2009-12-01 17:25:02 UTC) #11
dho
2009/12/1 <rsc@golang.org>: > Looks pretty good, thanks. > A few small comments. Some responses inline... ...
15 years, 3 months ago (2009-12-01 17:46:56 UTC) #12
cw
http://codereview.appspot.com/163052/diff/1016/1017 File src/pkg/net/fd.go (right): http://codereview.appspot.com/163052/diff/1016/1017#newcode399 src/pkg/net/fd.go:399: if (isEAGAIN(err) && fd.rdeadline >= 0) || (isEOF(err) && ...
15 years, 3 months ago (2009-12-01 18:56:52 UTC) #13
dho
2009/12/1 <cw@f00f.org>: > > http://codereview.appspot.com/163052/diff/1016/1017 > File src/pkg/net/fd.go (right): > > http://codereview.appspot.com/163052/diff/1016/1017#newcode399 > src/pkg/net/fd.go:399: if ...
15 years, 3 months ago (2009-12-01 19:34:30 UTC) #14
cw
On Tue, Dec 01, 2009 at 02:34:29PM -0500, Devon H. O'Dell wrote: > It's bogus. ...
15 years, 3 months ago (2009-12-01 19:47:16 UTC) #15
dho
2009/12/1 Chris Wedgwood <cw@f00f.org>: > On Tue, Dec 01, 2009 at 02:34:29PM -0500, Devon H. ...
15 years, 3 months ago (2009-12-01 19:51:53 UTC) #16
dho
Hi all, This should incorporate all of the changes discussed between cw's and my changes ...
15 years, 3 months ago (2009-12-01 22:23:30 UTC) #17
rsc
LGTM thanks.
15 years, 3 months ago (2009-12-01 22:27:40 UTC) #18
dho
Hello rsc, agl, cw (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 3 months ago (2009-12-02 00:20:42 UTC) #19
rsc
LGTM. I am waiting for you (dho) to add Shutdown to FreeBSD before I submit ...
15 years, 3 months ago (2009-12-02 00:30:18 UTC) #20
cw
LGTM
15 years, 3 months ago (2009-12-02 00:33:48 UTC) #21
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=048b72a03aa3 *** net: fix netFD.Close races Fixes issue 271. Fixes issue 321. ...
15 years, 3 months ago (2009-12-02 07:29:03 UTC) #22
rsc
15 years, 3 months ago (2009-12-02 09:10:49 UTC) #23
rsc
15 years, 3 months ago (2009-12-02 09:34:00 UTC) #24
rsc
15 years, 3 months ago (2009-12-02 09:50:22 UTC) #25
rsc
15 years, 3 months ago (2009-12-02 09:51:05 UTC) #26
rsc
15 years, 3 months ago (2009-12-02 09:56:13 UTC) #27

          
Sign in to reply to this message.

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