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

Issue 1776423004: Only MarkTrailersConsumed when actually sending trailers notification (Closed)

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

Description

Only MarkTrailersConsumed when actually sending trailers notification MarkTrailersConsumed is currently done before the notification is posted asynchronously. However, there might be a pending read before that notification is executed but after MarkTrailersConsumed, which leads to delegate mistakenly to assume that the trailers are consumed. This CL changes so that we MarkTrailersConsumed when we actually will immediately notify delegate. This CL also patches some internal trailers changes in quic_spdy_stream.cc and quic_spdy_client_stream.cc. BUG=586207 Committed: https://crrev.com/188bd40f723812b8a718195fdc5af274c21891e4 Cr-Commit-Position: refs/heads/master@{#380799}

Patch Set 1 : #

Patch Set 2 : Added a unit test #

Patch Set 3 : Add internal changes and fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -46 lines) Patch
M net/quic/quic_chromium_client_stream.cc View 1 2 2 chunks +17 lines, -22 lines 0 comments Download
M net/quic/quic_chromium_client_stream_test.cc View 1 2 3 chunks +94 lines, -2 lines 0 comments Download
M net/quic/quic_http_stream_test.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M net/quic/quic_spdy_stream.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M net/quic/quic_spdy_stream.cc View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M net/quic/quic_spdy_stream_test.cc View 1 2 2 chunks +39 lines, -0 lines 0 comments Download
M net/tools/quic/quic_client.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/tools/quic/quic_spdy_client_stream.h View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M net/tools/quic/quic_spdy_client_stream.cc View 1 2 1 chunk +1 line, -13 lines 0 comments Download
M net/tools/quic/test_tools/quic_test_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (14 generated)
xunjieli
Ryan, could you take a look? (cc-ed Robbie.)
4 years, 9 months ago (2016-03-09 21:16:15 UTC) #6
Ryan Hamilton
Can you add a unit test?
4 years, 9 months ago (2016-03-09 22:35:01 UTC) #7
xunjieli
On 2016/03/09 22:35:01, Ryan Hamilton wrote: > Can you add a unit test? Great suggestion! ...
4 years, 9 months ago (2016-03-10 20:04:30 UTC) #9
xunjieli
Ryan, PTAL. I have also included internal changes on trailers and fixed affected tests. Once ...
4 years, 9 months ago (2016-03-11 22:20:37 UTC) #15
Ryan Hamilton
lgtm
4 years, 9 months ago (2016-03-11 23:44:03 UTC) #16
xunjieli
On 2016/03/11 23:44:03, Ryan Hamilton wrote: > lgtm Thanks a lot for the quick response!
4 years, 9 months ago (2016-03-11 23:46:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776423004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776423004/160001
4 years, 9 months ago (2016-03-11 23:47:32 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:160001)
4 years, 9 months ago (2016-03-12 00:17:33 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-12 00:20:05 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/188bd40f723812b8a718195fdc5af274c21891e4
Cr-Commit-Position: refs/heads/master@{#380799}

Powered by Google App Engine
This is Rietveld 408576698