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

Issue 2064593002: Change SPDY to call request_callback after data is sent. (Closed)

Created:
4 years, 6 months ago by maksims (do not use this acc)
Modified:
4 years, 5 months ago
Reviewers:
Bence, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ryan Hamilton
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change SPDY to call request_callback after data is sent. This cl makes SPDY to match HTTP and QUIC implementations and call the request_callback only after data is sent. The unittests are corrected accordingly. Committed: https://crrev.com/8d2df66d2b150b00ed046d809bd0a16b0a7b75b7 Cr-Commit-Position: refs/heads/master@{#400629}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 7

Patch Set 3 : call cb only after the whole data has been sent if there was data #

Total comments: 7

Patch Set 4 : unittest last empty chunk #

Total comments: 4

Patch Set 5 : append nullptr to data before request #

Total comments: 5

Patch Set 6 : mmenke comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -20 lines) Patch
M net/spdy/spdy_http_stream.cc View 1 2 3 4 5 4 chunks +18 lines, -10 lines 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 1 2 3 4 5 8 chunks +69 lines, -7 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
maksims (do not use this acc)
please review
4 years, 6 months ago (2016-06-13 10:10:12 UTC) #4
Bence
LGTM with optional nit. Thank you. https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode305 net/spdy/spdy_http_stream.cc:305: // TODO(akalin): Do ...
4 years, 6 months ago (2016-06-13 13:53:36 UTC) #5
mmenke
https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode473 net/spdy/spdy_http_stream.cc:473: DoRequestCallback(OK); BUG: Shouldn't we only do this if eof ...
4 years, 6 months ago (2016-06-13 14:31:07 UTC) #6
mmenke
https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode473 net/spdy/spdy_http_stream.cc:473: DoRequestCallback(OK); On 2016/06/13 14:31:06, mmenke wrote: > BUG: Shouldn't ...
4 years, 6 months ago (2016-06-13 14:48:27 UTC) #7
maksims (do not use this acc)
https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode473 net/spdy/spdy_http_stream.cc:473: DoRequestCallback(OK); On 2016/06/13 14:48:27, mmenke wrote: > On 2016/06/13 ...
4 years, 6 months ago (2016-06-14 08:35:03 UTC) #8
mmenke
https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode473 net/spdy/spdy_http_stream.cc:473: DoRequestCallback(OK); On 2016/06/14 08:35:03, maksims wrote: > On 2016/06/13 ...
4 years, 6 months ago (2016-06-14 15:25:44 UTC) #9
maksims (do not use this acc)
On 2016/06/14 15:25:44, mmenke wrote: > https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc > File net/spdy/spdy_http_stream.cc (right): > > https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode473 > ...
4 years, 6 months ago (2016-06-14 17:24:15 UTC) #10
maksims (do not use this acc)
On 2016/06/14 17:24:15, maksims wrote: > On 2016/06/14 15:25:44, mmenke wrote: > > > https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc ...
4 years, 6 months ago (2016-06-15 05:20:02 UTC) #11
maksims (do not use this acc)
https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode305 net/spdy/spdy_http_stream.cc:305: // TODO(akalin): Do this immediately after sending the request ...
4 years, 6 months ago (2016-06-15 07:51:45 UTC) #14
mmenke
https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc#newcode441 net/spdy/spdy_http_stream.cc:441: // Never called!!! What if we have a chunked ...
4 years, 6 months ago (2016-06-15 16:15:18 UTC) #15
Bence
On 2016/06/13 14:31:07, mmenke wrote: > https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc > File net/spdy/spdy_http_stream.cc (right): > > https://codereview.chromium.org/2064593002/diff/20001/net/spdy/spdy_http_stream.cc#newcode473 > ...
4 years, 6 months ago (2016-06-15 19:02:09 UTC) #16
maksims (do not use this acc)
https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc#newcode441 net/spdy/spdy_http_stream.cc:441: // Never called!!! On 2016/06/15 16:15:18, mmenke wrote: > ...
4 years, 6 months ago (2016-06-16 05:12:46 UTC) #17
maksims (do not use this acc)
https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc#newcode441 net/spdy/spdy_http_stream.cc:441: // Never called!!! On 2016/06/16 05:12:46, maksims wrote: > ...
4 years, 6 months ago (2016-06-16 05:28:08 UTC) #18
maksims (do not use this acc)
https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc#newcode441 net/spdy/spdy_http_stream.cc:441: // Never called!!! And I guess the only way ...
4 years, 6 months ago (2016-06-16 06:52:28 UTC) #19
maksims (do not use this acc)
Any suggestions?
4 years, 6 months ago (2016-06-17 04:41:04 UTC) #20
mmenke
On 2016/06/16 06:52:28, maksims wrote: > https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc > File net/spdy/spdy_http_stream.cc (right): > > https://codereview.chromium.org/2064593002/diff/100001/net/spdy/spdy_http_stream.cc#newcode441 > ...
4 years, 6 months ago (2016-06-17 15:30:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2064593002/140001
4 years, 6 months ago (2016-06-20 07:03:45 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 6 months ago (2016-06-20 07:07:32 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 07:11:00 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8d2df66d2b150b00ed046d809bd0a16b0a7b75b7
Cr-Commit-Position: refs/heads/master@{#400629}

Powered by Google App Engine
This is Rietveld 408576698