From 0005efa508f6f7cd4fef2ca775500908c46be76e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 27 Aug 2021 18:45:19 +0900 Subject: [PATCH] nghttpx: --frontend-http3-read-timeout should be noop if HTTP/3 is disabled --- src/shrpx_config.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_config.cc b/src/shrpx_config.cc index d826d0d3..c3b8e600 100644 --- a/src/shrpx_config.cc +++ b/src/shrpx_config.cc @@ -3880,8 +3880,12 @@ int parse_config(Config *config, int optid, const StringRef &opt, return 0; } case SHRPX_OPTID_FRONTEND_HTTP3_READ_TIMEOUT: +#ifdef ENABLE_HTTP3 return parse_duration(&config->conn.upstream.timeout.http3_read, opt, optarg); +#else // !ENABLE_HTTP3 + return 0; +#endif // !ENABLE_HTTP3 case SHRPX_OPTID_QUIC_IDLE_TIMEOUT: #ifdef ENABLE_HTTP3 return parse_duration(&config->quic.timeout.idle, opt, optarg);