Skip to content

Commit

Permalink
quic: avoid using recommended tls init on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Dec 30, 2023
1 parent 84dbe6a commit 615c63e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/quic/tlscontext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ const TLSContext::Options TLSContext::Options::kDefault = {};

namespace {

// One time initialization
auto _ = []() {
CHECK_EQ(ngtcp2_crypto_quictls_init(), 0);
return 0;
}();
// TODO(@jasnell): One time initialization. ngtcp2 says this is optional but
// highly recommended to deal with some perf regression. Unfortunately doing
// this breaks some existing tests and we need to understand the potential
// impact of calling this.
// auto _ = []() {
// CHECK_EQ(ngtcp2_crypto_quictls_init(), 0);
// return 0;
// }();

constexpr size_t kMaxAlpnLen = 255;

Expand Down

0 comments on commit 615c63e

Please sign in to comment.