From 302cf1f5e2558eccac0678c39bc97e6cc344eb97 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 28 Oct 2021 14:40:06 +0200 Subject: [PATCH] dnsdist: Fix build without nghttp2 --- pdns/dnsdistdist/dnsdist-nghttp2.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ } -- 2.47.2