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

Issue 2831042: code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by kaib
Modified:
13 years, 6 months ago
Reviewers:
CC:
rsc, r, golang-dev, jussi_tinkercad.com
Visibility:
Public.

Description

Fix a deadlock bug in the rpc client. The panic will trigger regularly when client connections are flaky (probably another issue). (credits to jussi@tinkercad.com for finding the issue)

Patch Set 1 #

Patch Set 2 : code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger #

Patch Set 3 : code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger #

Patch Set 4 : code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger #

Patch Set 5 : code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger #

Total comments: 2

Patch Set 6 : code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger #

Total comments: 4

Patch Set 7 : code review 2831042: Fix a deadlock bug in the rpc client. The panic will trigger #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -1 line) Patch
M src/pkg/rpc/client.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/rpc/server_test.go View 3 4 5 6 2 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 11
kaib
Hello rsc (cc: golang-dev@googlegroups.com, jussi@tinkercad.com), I'd like you to review this change.
13 years, 6 months ago (2010-11-02 19:09:47 UTC) #1
rsc
how could these two possibly be different? russ
13 years, 6 months ago (2010-11-02 19:12:25 UTC) #2
rsc
LGTM oh i see. you are guarding against the panic. ok.
13 years, 6 months ago (2010-11-02 19:13:45 UTC) #3
rsc
but please add a test
13 years, 6 months ago (2010-11-02 19:13:57 UTC) #4
kaib
ptal
13 years, 6 months ago (2010-11-02 20:32:47 UTC) #5
r
http://codereview.appspot.com/2831042/diff/17001/src/pkg/rpc/server_test.go File src/pkg/rpc/server_test.go (right): http://codereview.appspot.com/2831042/diff/17001/src/pkg/rpc/server_test.go#newcode353 src/pkg/rpc/server_test.go:353: func (_ WriteFailCodec) Close() os.Error { you don't need ...
13 years, 6 months ago (2010-11-02 20:36:50 UTC) #6
kaib
ptal http://codereview.appspot.com/2831042/diff/17001/src/pkg/rpc/server_test.go File src/pkg/rpc/server_test.go (right): http://codereview.appspot.com/2831042/diff/17001/src/pkg/rpc/server_test.go#newcode353 src/pkg/rpc/server_test.go:353: func (_ WriteFailCodec) Close() os.Error { On 2010/11/02 ...
13 years, 6 months ago (2010-11-02 20:52:52 UTC) #7
rsc1
LGTM but wait for r http://codereview.appspot.com/2831042/diff/23001/src/pkg/rpc/server_test.go File src/pkg/rpc/server_test.go (right): http://codereview.appspot.com/2831042/diff/23001/src/pkg/rpc/server_test.go#newcode340 src/pkg/rpc/server_test.go:340: return os.NewError("fail") // the ...
13 years, 6 months ago (2010-11-02 21:00:01 UTC) #8
kaib
ptal (again..) http://codereview.appspot.com/2831042/diff/23001/src/pkg/rpc/server_test.go File src/pkg/rpc/server_test.go (right): http://codereview.appspot.com/2831042/diff/23001/src/pkg/rpc/server_test.go#newcode340 src/pkg/rpc/server_test.go:340: return os.NewError("fail") On 2010/11/02 21:00:01, rsc1 wrote: ...
13 years, 6 months ago (2010-11-02 21:04:06 UTC) #9
r
LGTM i will submit
13 years, 6 months ago (2010-11-02 21:04:15 UTC) #10
r
13 years, 6 months ago (2010-11-02 21:05:01 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=c9d80617e41f ***

Fix a deadlock bug in the rpc client. The panic will trigger
regularly when client connections are flaky (probably another
issue).

(credits to jussi@tinkercad.com for finding the issue)

R=rsc, r
CC=golang-dev, jussi
http://codereview.appspot.com/2831042

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

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