From: Remi Gacogne Date: Thu, 28 Oct 2021 12:40:06 +0000 (+0200) Subject: dnsdist: Fix build without nghttp2 X-Git-Tag: rec-4.6.0-beta1~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10922%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix build without nghttp2 --- diff --git a/pdns/dnsdistdist/dnsdist-nghttp2.cc b/pdns/dnsdistdist/dnsdist-nghttp2.cc index 44bd7058d0..a059f462a0 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2.cc +++ b/pdns/dnsdistdist/dnsdist-nghttp2.cc @@ -1353,15 +1353,21 @@ size_t handleH2Timeouts(FDMultiplexer& mplexer, const struct timeval& now) void setDoHDownstreamCleanupInterval(uint16_t max) { +#ifdef HAVE_NGHTTP2 DownstreamDoHConnectionsManager::setCleanupInterval(max); +#endif /* HAVE_NGHTTP2 */ } void setDoHDownstreamMaxIdleTime(uint16_t max) { +#ifdef HAVE_NGHTTP2 DownstreamDoHConnectionsManager::setMaxIdleTime(max); +#endif /* HAVE_NGHTTP2 */ } void setDoHDownstreamMaxConnectionsPerBackend(size_t max) { +#ifdef HAVE_NGHTTP2 DownstreamDoHConnectionsManager::setMaxCachedConnectionsPerDownstream(max); +#endif /* HAVE_NGHTTP2 */ }