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

Unified Diff: net/spdy/spdy_session.cc

Issue 2300683002: Increase maximum size of the HPACK decoder dynamic table to 64 kB. (Closed)
Patch Set: Add comment in Cronet tests. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_session.h ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 2e42ffccfe4781bf5013a47d75a2f7bf38217b95..d07e16da7cf8e92ab5f22c5162fc54f50aa818a3 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -731,6 +731,7 @@ void SpdySession::InitializeWithSocket(
buffered_spdy_framer_.reset(new BufferedSpdyFramer());
buffered_spdy_framer_->set_visitor(this);
buffered_spdy_framer_->set_debug_visitor(this);
+ buffered_spdy_framer_->UpdateHeaderDecoderTableSize(kMaxHeaderTableSize);
net_log_.AddEvent(NetLog::TYPE_HTTP2_SESSION_INITIALIZED,
base::Bind(&NetLogSpdyInitializedCallback,
@@ -2708,8 +2709,8 @@ void SpdySession::SendInitialData() {
// First, notify the server about the settings they should use when
// communicating with us.
SettingsMap settings_map;
- // Create a new settings frame notifying the server of our
- // max concurrent streams and initial window size.
+ settings_map[SETTINGS_HEADER_TABLE_SIZE] =
+ SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxHeaderTableSize);
settings_map[SETTINGS_MAX_CONCURRENT_STREAMS] =
SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxConcurrentPushedStreams);
if (stream_max_recv_window_size_ != kDefaultInitialWindowSize) {
« no previous file with comments | « net/spdy/spdy_session.h ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698