Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Issue 1638493004: server/prpc: updated server according to protocol (Closed)

Created:
4 years, 11 months ago by nodir
Modified:
4 years, 10 months ago
Reviewers:
dnj, dnj (Google)
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Base URL:
https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

server/prpc: updated server according to protocol Update pRPC server to conform the protocol https://godoc.org/github.com/luci/luci-go/common/prpc#hdr-Protocol R=dnj@chromium.org BUG=

Patch Set 1 #

Patch Set 2 : #

Total comments: 38

Patch Set 3 : addressed comments #

Total comments: 5

Patch Set 4 : requests to non-POST requests are undefined #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -290 lines) Patch
A common/prpc/client.go View 1 1 chunk +12 lines, -0 lines 0 comments Download
M common/prpc/doc.go View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M server/prpc/auth.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M server/prpc/decoding.go View 1 2 2 chunks +3 lines, -3 lines 2 comments Download
M server/prpc/decoding_test.go View 5 chunks +5 lines, -5 lines 0 comments Download
M server/prpc/encoding.go View 1 2 3 7 chunks +50 lines, -100 lines 0 comments Download
M server/prpc/encoding_test.go View 1 2 3 chunks +10 lines, -48 lines 0 comments Download
M server/prpc/error.go View 1 2 1 chunk +14 lines, -26 lines 0 comments Download
M server/prpc/error_test.go View 1 chunk +0 lines, -34 lines 0 comments Download
M server/prpc/method.go View 1 2 2 chunks +27 lines, -54 lines 0 comments Download
A server/prpc/response.go View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A server/prpc/response_test.go View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
M server/prpc/server.go View 1 2 3 7 chunks +45 lines, -9 lines 0 comments Download
M server/prpc/server_test.go View 1 2 3 4 chunks +24 lines, -1 line 0 comments Download
M server/prpc/service.go View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
nodir
PTAL
4 years, 11 months ago (2016-01-26 09:34:32 UTC) #3
dnj (Google)
Mostly looks good, few comments and one big ask: Can we remove as many code ...
4 years, 11 months ago (2016-01-26 16:13:57 UTC) #5
nodir
We never panic if API input is malformed, including http requests. Look closer to panics. ...
4 years, 11 months ago (2016-01-26 18:01:07 UTC) #7
nodir
https://codereview.chromium.org/1638493004/diff/20001/server/prpc/response.go File server/prpc/response.go (right): https://codereview.chromium.org/1638493004/diff/20001/server/prpc/response.go#newcode48 server/prpc/response.go:48: logging.Errorf(c, "%s error: %s", r.code, r.body) On 2016/01/26 18:01:07, ...
4 years, 11 months ago (2016-01-26 18:08:13 UTC) #8
dnj
https://codereview.chromium.org/1638493004/diff/20001/server/prpc/encoding.go File server/prpc/encoding.go (right): https://codereview.chromium.org/1638493004/diff/20001/server/prpc/encoding.go#newcode81 server/prpc/encoding.go:81: panicf("msg is nil") > err, in another CL you ...
4 years, 11 months ago (2016-01-26 18:50:27 UTC) #9
nodir
https://codereview.chromium.org/1638493004/diff/20001/server/prpc/server.go File server/prpc/server.go (right): https://codereview.chromium.org/1638493004/diff/20001/server/prpc/server.go#newcode102 server/prpc/server.go:102: r.POST(path, handle) On 2016/01/26 18:50:27, dnj wrote: > On ...
4 years, 11 months ago (2016-01-26 19:06:09 UTC) #10
dnj
lgtm w/ some nits https://codereview.chromium.org/1638493004/diff/60001/server/prpc/response.go File server/prpc/response.go (right): https://codereview.chromium.org/1638493004/diff/60001/server/prpc/response.go#newcode52 server/prpc/response.go:52: }.Errorf(c, "%s", body) On 2016/01/26 ...
4 years, 11 months ago (2016-01-26 19:26:38 UTC) #11
dnj
4 years, 11 months ago (2016-01-27 00:08:46 UTC) #12
Taking ownership, will continue here:
https://codereview.chromium.org/1636873006

Powered by Google App Engine
This is Rietveld 408576698