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

Issue 1061853002: Emit session-level WINDOW_UPDATEs less frequently. (Closed)

Created:
5 years, 8 months ago by Bence
Modified:
5 years, 8 months ago
Reviewers:
Ryan Hamilton
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

* Fix a bug in SpdySession::IncreaseRecvWindowSize() that was causing unnecessarily frequent WINDOW_UPDATEs to be sent. * Update SpdyNetworkTransactionTest.WindowUpdateSent to test for this fix and verify locally that it fails without the fix. * Add spdy_session_max_recv_window_size member and plumb it through HttpNetworkSession::Params, SpdySessionPool, and SpdySession. * Rename stream_initial_recv_window_size to stream_max_recv_window_size members and corresponding methods. * Set default values in HttpNetworkSession instead of SpdySession, have two separate constants instead of one. * Set this member in SpdySessionDependencies to specification-prescribed default initial window size for tests. * Use this default to simplify SpdyNetworkTransactionTest.SettingsPlayback and SpdySessionTest.SendInitialDataOnNewSession tests. * Add SpdySessionPoolPeer methods to modify session and stream level maximum window size. BUG=474208 Committed: https://crrev.com/8f0f3b63b8fd45d72ab957bdc12c714899199a72 Cr-Commit-Position: refs/heads/master@{#324184}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add test and loads of plumbing. #

Total comments: 21

Patch Set 3 : Re: comments in #5. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -117 lines) Patch
M net/http/http_network_session.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_network_session.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 7 chunks +61 lines, -24 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 5 chunks +25 lines, -14 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 7 chunks +21 lines, -26 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 2 3 chunks +15 lines, -22 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 3 chunks +1 line, -18 lines 0 comments Download
M net/spdy/spdy_stream.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 4 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Bence
Ryan: PTAL. Thanks.
5 years, 8 months ago (2015-04-06 16:06:10 UTC) #2
Ryan Hamilton
This change looks good, but I think it should be tested. Check out: SpdyNetworkTransactionTest.SettingsPlayback which ...
5 years, 8 months ago (2015-04-06 16:27:06 UTC) #3
Bence
Ryan, PTAL. Thanks for your suggestion, I was able to modify an existing test. https://codereview.chromium.org/1061853002/diff/1/net/spdy/spdy_session.cc ...
5 years, 8 months ago (2015-04-07 12:32:16 UTC) #4
Ryan Hamilton
This is great! Thanks for augmenting the test. it's much improved. A couple of suggestions ...
5 years, 8 months ago (2015-04-07 14:56:40 UTC) #5
Bence
Ryan: PTAL. Feels like we are getting in a good shape... https://codereview.chromium.org/1061853002/diff/20001/net/http/http_network_session.cc File net/http/http_network_session.cc (right): ...
5 years, 8 months ago (2015-04-07 20:21:38 UTC) #6
Ryan Hamilton
Looks GREAT! Thanks for doing this. I think this is a huge win for readability. ...
5 years, 8 months ago (2015-04-08 03:51:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061853002/40001
5 years, 8 months ago (2015-04-08 03:52:04 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-08 04:37:33 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8f0f3b63b8fd45d72ab957bdc12c714899199a72 Cr-Commit-Position: refs/heads/master@{#324184}
5 years, 8 months ago (2015-04-08 04:38:34 UTC) #11
Bence
5 years, 8 months ago (2015-04-08 11:17:27 UTC) #12
Message was sent while issue was closed.
Thanks for your help.

Powered by Google App Engine
This is Rietveld 408576698