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

This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-27 18:45:19 +09:00
parent 6931cb9d65
commit 0005efa508
1 changed files with 4 additions and 0 deletions

View File

@ -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);