Commit 0005efa5 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: --frontend-http3-read-timeout should be noop if HTTP/3 is disabled

parent 6931cb9d
...@@ -3880,8 +3880,12 @@ int parse_config(Config *config, int optid, const StringRef &opt, ...@@ -3880,8 +3880,12 @@ int parse_config(Config *config, int optid, const StringRef &opt,
return 0; return 0;
} }
case SHRPX_OPTID_FRONTEND_HTTP3_READ_TIMEOUT: case SHRPX_OPTID_FRONTEND_HTTP3_READ_TIMEOUT:
#ifdef ENABLE_HTTP3
return parse_duration(&config->conn.upstream.timeout.http3_read, opt, return parse_duration(&config->conn.upstream.timeout.http3_read, opt,
optarg); optarg);
#else // !ENABLE_HTTP3
return 0;
#endif // !ENABLE_HTTP3
case SHRPX_OPTID_QUIC_IDLE_TIMEOUT: case SHRPX_OPTID_QUIC_IDLE_TIMEOUT:
#ifdef ENABLE_HTTP3 #ifdef ENABLE_HTTP3
return parse_duration(&config->quic.timeout.idle, opt, optarg); return parse_duration(&config->quic.timeout.idle, opt, optarg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment