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

Unified Diff: net/spdy/hpack/hpack_header_table.cc

Issue 2348603003: Increase HPACK table size up to the optimal size if clients allow it. (Closed)
Patch Set: 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 | « no previous file | net/spdy/hpack/hpack_header_table_test.cc » ('j') | net/spdy/spdy_flags.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_header_table.cc
diff --git a/net/spdy/hpack/hpack_header_table.cc b/net/spdy/hpack/hpack_header_table.cc
index 7043ae8ec66676880a7a5f1fd010660840692d28..6599b660400f4745341ea2872490028a9cab1070 100644
--- a/net/spdy/hpack/hpack_header_table.cc
+++ b/net/spdy/hpack/hpack_header_table.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "net/spdy/hpack/hpack_constants.h"
#include "net/spdy/hpack/hpack_static_table.h"
+#include "net/spdy/spdy_flags.h"
namespace net {
@@ -125,7 +126,11 @@ void HpackHeaderTable::SetMaxSize(size_t max_size) {
void HpackHeaderTable::SetSettingsHeaderTableSize(size_t settings_size) {
settings_size_bound_ = settings_size;
- if (settings_size_bound_ < max_size_) {
+ if (!FLAGS_chromium_reloadable_flag_increase_hpack_table_size) {
+ if (settings_size_bound_ < max_size_) {
+ SetMaxSize(settings_size_bound_);
+ }
+ } else {
SetMaxSize(settings_size_bound_);
}
}
« no previous file with comments | « no previous file | net/spdy/hpack/hpack_header_table_test.cc » ('j') | net/spdy/spdy_flags.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698