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

Issue 2016863002: Log BIDIRECTIONL_STREAM_ALIVE before HTTP_STREAM_REQUEST (Closed)

Created:
4 years, 7 months ago by xunjieli
Modified:
4 years, 6 months ago
Reviewers:
mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log BIDIRECTIONL_STREAM_ALIVE before HTTP_STREAM_REQUEST This CL logs BIDIRECTIONL_STREAM_ALIVE before we start any stream request. This makes sure that HTTP_STREAM_REQUEST is nested inside BIDIRECTIONL_STREAM_ALIVE begin and end events. BUG=516342 Committed: https://crrev.com/f88028e345674e0e76677164dd415b4dee886590 Cr-Commit-Position: refs/heads/master@{#397205}

Patch Set 1 #

Patch Set 2 : Added a test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M net/http/bidirectional_stream.cc View 2 chunks +7 lines, -6 lines 4 comments Download
M net/http/bidirectional_stream_unittest.cc View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
xunjieli
Misha, PTAL. Thank you!
4 years, 7 months ago (2016-05-26 21:08:56 UTC) #3
mef
https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_stream.cc File net/http/bidirectional_stream.cc (right): https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_stream.cc#newcode93 net/http/bidirectional_stream.cc:93: if (net_log_.IsCapturing()) { Should this go down below the ...
4 years, 6 months ago (2016-06-01 17:25:40 UTC) #5
xunjieli
https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_stream.cc File net/http/bidirectional_stream.cc (right): https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_stream.cc#newcode93 net/http/bidirectional_stream.cc:93: if (net_log_.IsCapturing()) { On 2016/06/01 17:25:40, mef wrote: > ...
4 years, 6 months ago (2016-06-01 17:38:45 UTC) #6
mef
lgtm https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_stream.cc File net/http/bidirectional_stream.cc (right): https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_stream.cc#newcode93 net/http/bidirectional_stream.cc:93: if (net_log_.IsCapturing()) { On 2016/06/01 17:38:45, xunjieli wrote: ...
4 years, 6 months ago (2016-06-01 17:45:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2016863002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2016863002/20001
4 years, 6 months ago (2016-06-01 17:47:10 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-01 19:27:33 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f88028e345674e0e76677164dd415b4dee886590 Cr-Commit-Position: refs/heads/master@{#397205}
4 years, 6 months ago (2016-06-01 19:29:52 UTC) #13
xunjieli
4 years, 6 months ago (2016-06-01 22:23:28 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_...
File net/http/bidirectional_stream.cc (right):

https://codereview.chromium.org/2016863002/diff/20001/net/http/bidirectional_...
net/http/bidirectional_stream.cc:93: if (net_log_.IsCapturing()) {
On 2016/06/01 17:45:33, mef wrote:
> On 2016/06/01 17:38:45, xunjieli wrote:
> > On 2016/06/01 17:25:40, mef wrote:
> > > Should this go down below the failure exit if not Https? Also, do we need
a
> > test
> > > for that?
> > 
> > I think it should be before the failure exit. In case we have the disallowed
> > schemes, we have logs for it too. When we enter the failure exit, we still
> > create the BidirectionalStream object, so I think it makes sense to log the
> > event.
> > 
> > We do have a test for the early exit. It is in
> > BidirectionalStreamTest.CreateInsecureStream.
> 
> sgtm, thanks for explanation!

thanks for the review!

Powered by Google App Engine
This is Rietveld 408576698