Skip to content

Commit 615c63e

Browse files
committed
quic: avoid using recommended tls init on startup
1 parent 84dbe6a commit 615c63e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/quic/tlscontext.cc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ const TLSContext::Options TLSContext::Options::kDefault = {};
3636

3737
namespace {
3838

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

4548
constexpr size_t kMaxAlpnLen = 255;
4649

0 commit comments

Comments
 (0)