Skip to content

Commit 47e85ba

Browse files
committed
quic: enable qpack dynamic table
1 parent d714e8d commit 47e85ba

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/quic/application.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ Session::Application_Options::operator const nghttp3_settings() const {
4343
.qpack_blocked_streams = static_cast<size_t>(qpack_blocked_streams),
4444
.enable_connect_protocol = enable_connect_protocol,
4545
.h3_datagram = enable_datagrams,
46-
// TODO(@jasnell): Support origin frames?
46+
// origin_list is nullptr here because it is set directly on the
47+
// nghttp3_settings in Http3ApplicationImpl::InitializeConnection()
48+
// from the SNI configuration.
4749
.origin_list = nullptr,
4850
.glitch_ratelim_burst = 1000,
4951
.glitch_ratelim_rate = 33,
50-
.qpack_indexing_strat = NGHTTP3_QPACK_INDEXING_STRAT_NONE,
52+
.qpack_indexing_strat = NGHTTP3_QPACK_INDEXING_STRAT_EAGER,
5153
};
5254
}
5355

src/quic/session.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ class Session final : public AsyncWrap, private SessionTicket::AppData::Source {
7474

7575
// HTTP/3 specific options.
7676
uint64_t max_field_section_size = 0;
77-
uint64_t qpack_max_dtable_capacity = 0;
78-
uint64_t qpack_encoder_max_dtable_capacity = 0;
79-
uint64_t qpack_blocked_streams = 0;
77+
uint64_t qpack_max_dtable_capacity = 4096;
78+
uint64_t qpack_encoder_max_dtable_capacity = 4096;
79+
uint64_t qpack_blocked_streams = 100;
8080

8181
bool enable_connect_protocol = true;
8282
bool enable_datagrams = true;

0 commit comments

Comments
 (0)