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

Unified Diff: net/quic/chromium/quic_chromium_client_session.cc

Issue 2909653004: Increase the QUIC header size limit to 256KB from 16KB. (Closed)
Patch Set: Created 3 years, 7 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/quic/chromium/mock_quic_data.cc ('k') | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_client_session.cc
diff --git a/net/quic/chromium/quic_chromium_client_session.cc b/net/quic/chromium/quic_chromium_client_session.cc
index 3f3843e5d0e568defb17e77f7babab467082bb34..a2c88c86f3828005ac280f43761f516da4deafe1 100644
--- a/net/quic/chromium/quic_chromium_client_session.cc
+++ b/net/quic/chromium/quic_chromium_client_session.cc
@@ -64,6 +64,9 @@ const size_t kTokenBindingSignatureMapSize = 10;
// migrating sessions need to wait for a new network to connect.
const size_t kWaitTimeForNewNetworkSecs = 10;
+// The maximum size of uncompressed QUIC headers that will be allowed.
+const size_t kMaxUncompressedHeaderSize = 256 * 1024;
+
// Histograms for tracking down the crashes from http://crbug.com/354669
// Note: these values must be kept in sync with the corresponding values in:
// tools/metrics/histograms/histograms.xml
@@ -675,6 +678,7 @@ void QuicChromiumClientSession::Initialize() {
base::MakeUnique<HpackEncoderDebugVisitor>());
SetHpackDecoderDebugVisitor(
base::MakeUnique<HpackDecoderDebugVisitor>());
+ set_max_uncompressed_header_bytes(kMaxUncompressedHeaderSize);
}
void QuicChromiumClientSession::OnHeadersHeadOfLineBlocking(
« no previous file with comments | « net/quic/chromium/mock_quic_data.cc ('k') | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698