From: Remi Gacogne Date: Tue, 29 May 2018 10:42:38 +0000 (+0200) Subject: Merge pull request #6688 from rgacogne/dnsdist-const-ds-remote X-Git-Tag: dnsdist-1.3.1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7bf24320cfdbe0fbcb5c7967d98f5cae2046707;p=pdns Merge pull request #6688 from rgacogne/dnsdist-const-ds-remote dnsdist: Mark the remote member of DownstreamState as const --- b7bf24320cfdbe0fbcb5c7967d98f5cae2046707 diff --cc pdns/dnsdist.hh index c3d39098f,9bca6dcd2..cc30c09fd --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@@ -534,13 -501,12 +534,13 @@@ struct DownstreamStat std::vector sockets; std::mutex socketsLock; + std::mutex connectLock; std::unique_ptr mplexer{nullptr}; std::thread tid; - ComboAddress remote; + const ComboAddress remote; QPSLimiter qps; vector idStates; - ComboAddress sourceAddr; + const ComboAddress sourceAddr; checkfunc_t checkFunction; DNSName checkName{"a.root-servers.net."}; QType checkType{QType::A};