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

Issue 652209: Modify the SPDY stream to be buffered.... (Closed)

Created:
10 years, 10 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Modify the SPDY stream to be buffered. Discovered that passing small chunks of data to the renderer can cause the renderer to get backlogged. With SPDY, data chunks are always framed into smallish chunks (say ~4KB). So where HTTP would only send a couple of large chunks to the renderer to satisfy a resource load, SPDY may send many, and this was surprisingly slow. BUG=none TEST=SpdyNetworkTransactionTest.FullBuffer Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40073

Patch Set 1 #

Total comments: 15

Patch Set 2 : '' #

Total comments: 14

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -28 lines) Patch
M net/spdy/spdy_network_transaction_unittest.cc View 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
M net/spdy/spdy_stream.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M net/spdy/spdy_stream.cc View 1 2 3 4 5 chunks +74 lines, -28 lines 4 comments Download

Messages

Total messages: 12 (0 generated)
Mike Belshe
10 years, 10 months ago (2010-02-24 04:04:28 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/652209/diff/1/3 File net/spdy/spdy_stream.cc (left): http://codereview.chromium.org/652209/diff/1/3#oldcode220 net/spdy/spdy_stream.cc:220: OnClose(net::OK); If we don't call OnClose() here, where does ...
10 years, 10 months ago (2010-02-24 04:42:44 UTC) #2
Mike Belshe
As per discussion, the reason for the strangeness around OnClose and the callbacks is because ...
10 years, 10 months ago (2010-02-24 06:40:02 UTC) #3
Mike Belshe
I looked again - the bug from server push that I thought I knew of ...
10 years, 10 months ago (2010-02-24 21:05:12 UTC) #4
wtc
LGTM. Please note the comment marked with "BUG" below, which we discussed in person. I ...
10 years, 10 months ago (2010-02-24 22:48:48 UTC) #5
Mike Belshe
http://codereview.chromium.org/652209/diff/2001/3002 File net/spdy/spdy_stream.cc (right): http://codereview.chromium.org/652209/diff/2001/3002#newcode243 net/spdy/spdy_stream.cc:243: if (user_buffer_) { Calling DoCallback when user_callback_ is NULL ...
10 years, 10 months ago (2010-02-24 23:36:36 UTC) #6
willchan no longer on Chromium
I have to run to an appointment so I won't be able to review this ...
10 years, 10 months ago (2010-02-24 23:44:04 UTC) #7
wtc
LGTM. Feel free to to back to the original code. See my comment below. http://codereview.chromium.org/652209/diff/3007/2011 ...
10 years, 10 months ago (2010-02-25 01:06:07 UTC) #8
Mike Belshe
http://codereview.chromium.org/652209/diff/3007/2011 File net/spdy/spdy_stream.cc (right): http://codereview.chromium.org/652209/diff/3007/2011#newcode371 net/spdy/spdy_stream.cc:371: buffered_read_callback_pending_ = false; I agree. I reverted. BTW - ...
10 years, 10 months ago (2010-02-25 18:57:27 UTC) #9
wtc
LGTM. Just two nits about comments. http://codereview.chromium.org/652209/diff/2001/3002 File net/spdy/spdy_stream.cc (right): http://codereview.chromium.org/652209/diff/2001/3002#newcode244 net/spdy/spdy_stream.cc:244: // Handing small ...
10 years, 10 months ago (2010-02-25 20:04:48 UTC) #10
willchan no longer on Chromium
LGTM http://codereview.chromium.org/652209/diff/2018/2020 File net/spdy/spdy_stream.cc (right): http://codereview.chromium.org/652209/diff/2018/2020#newcode353 net/spdy/spdy_stream.cc:353: bool SpdyStream::ShouldWaitForMoreBufferedData() { I think this member function ...
10 years, 10 months ago (2010-02-25 20:47:35 UTC) #11
Mike Belshe
10 years, 10 months ago (2010-02-25 23:30:16 UTC) #12
http://codereview.chromium.org/652209/diff/2018/2020
File net/spdy/spdy_stream.cc (right):

http://codereview.chromium.org/652209/diff/2018/2020#newcode240
net/spdy/spdy_stream.cc:240: // Note that data may be received for a SpdyStream
prior to the user calling
On 2010/02/25 20:04:49, wtc wrote:
> Please update this comment.  It refers to the test for
> user_callback_, which is no longer here.

Done.

http://codereview.chromium.org/652209/diff/2018/2020#newcode353
net/spdy/spdy_stream.cc:353: bool SpdyStream::ShouldWaitForMoreBufferedData() {
On 2010/02/25 20:47:35, willchan wrote:
> I think this member function can be const

Done.

Powered by Google App Engine
This is Rietveld 408576698