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

Issue 7398050: rpc: allow served object to know about shutdown.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rog
Modified:
11 years, 2 months ago
Reviewers:
dimitern, mp+150385, dave, TheMue
Visibility:
Public.

Description

rpc: allow served object to know about shutdown. We want this so that we can clean up watchers easily when the client goes away. https://code.launchpad.net/~rogpeppe/juju-core/228-rpc-killer/+merge/150385 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : rpc: allow served object to know about shutdown. #

Total comments: 2

Patch Set 3 : rpc: allow served object to know about shutdown. #

Total comments: 5

Patch Set 4 : rpc: allow served object to know about shutdown. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -31 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M rpc/rpc_test.go View 1 2 3 15 chunks +36 lines, -17 lines 0 comments Download
M rpc/server.go View 1 3 chunks +27 lines, -14 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years, 2 months ago (2013-02-25 17:45:59 UTC) #1
dimitern
LGTM https://codereview.appspot.com/7398050/diff/2001/rpc/rpc_test.go File rpc/rpc_test.go (right): https://codereview.appspot.com/7398050/diff/2001/rpc/rpc_test.go#newcode440 rpc/rpc_test.go:440: type TKillerRoot struct { That reminds me of ...
11 years, 2 months ago (2013-02-26 09:00:17 UTC) #2
rog
Please take a look.
11 years, 2 months ago (2013-02-26 11:22:04 UTC) #3
TheMue
LGTM, only one small wish. https://codereview.appspot.com/7398050/diff/8001/rpc/rpc_test.go File rpc/rpc_test.go (right): https://codereview.appspot.com/7398050/diff/8001/rpc/rpc_test.go#newcode440 rpc/rpc_test.go:440: type TKillerRoot struct { ...
11 years, 2 months ago (2013-02-26 12:01:56 UTC) #4
dave_cheney.net
LGTM. Thanks. https://codereview.appspot.com/7398050/diff/8001/rpc/rpc_test.go File rpc/rpc_test.go (right): https://codereview.appspot.com/7398050/diff/8001/rpc/rpc_test.go#newcode440 rpc/rpc_test.go:440: type TKillerRoot struct { On 2013/02/26 12:01:56, ...
11 years, 2 months ago (2013-02-27 05:24:14 UTC) #5
rog
11 years, 2 months ago (2013-02-27 10:39:01 UTC) #6
*** Submitted:

rpc: allow served object to know about shutdown.

We want this so that we can clean up watchers
easily when the client goes away.

R=dimitern, TheMue, dfc
CC=
https://codereview.appspot.com/7398050

https://codereview.appspot.com/7398050/diff/8001/rpc/rpc_test.go
File rpc/rpc_test.go (right):

https://codereview.appspot.com/7398050/diff/8001/rpc/rpc_test.go#newcode440
rpc/rpc_test.go:440: type TKillerRoot struct {
On 2013/02/26 12:01:56, TheMue wrote:
> Stuck a bit with the one char prefix. Could be TestRoot and TestKillerRoot.

perhaps, but we've already got lots of Test prefixes floating around. any other
suggestions?

in fact, i think i'll just lose the T prefix entirely. i think that'll work ok.
Sign in to reply to this message.

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