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

Unified Diff: net/quic/quic_spdy_session.cc

Issue 1865803007: relnote: Add QUIC connection option DHDT to disable HPACK dynamic table. Guarded by FLAGS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_CL_118983961
Patch Set: Created 4 years, 8 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
Index: net/quic/quic_spdy_session.cc
diff --git a/net/quic/quic_spdy_session.cc b/net/quic/quic_spdy_session.cc
index af92387004929c979a9a35195ea1ccd1393b2c1a..07b202abdd23d327c62fcac905df545cf598e4d0 100644
--- a/net/quic/quic_spdy_session.cc
+++ b/net/quic/quic_spdy_session.cc
@@ -113,4 +113,12 @@ void QuicSpdySession::OnPromiseHeadersComplete(QuicStreamId stream_id,
ConnectionCloseBehavior::SILENT_CLOSE);
}
+void QuicSpdySession::OnConfigNegotiated() {
+ QuicSession::OnConfigNegotiated();
+ if (FLAGS_quic_disable_hpack_dynamic_table &&
+ config()->HasClientSentConnectionOption(kDHDT, perspective())) {
+ headers_stream_->DisableHpackDynamicTable();
+ }
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698