From: Remi Gacogne Date: Wed, 24 Feb 2021 14:20:03 +0000 (+0100) Subject: dnsdist: Also update the TTD on a 'write' IO update X-Git-Tag: dnsdist-1.6.0-alpha2~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10108%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Also update the TTD on a 'write' IO update --- diff --git a/pdns/dnsdistdist/tcpiohandler-mplexer.hh b/pdns/dnsdistdist/tcpiohandler-mplexer.hh index 0b85fe68ae..c7d0c26e09 100644 --- a/pdns/dnsdistdist/tcpiohandler-mplexer.hh +++ b/pdns/dnsdistdist/tcpiohandler-mplexer.hh @@ -85,6 +85,10 @@ public: } else if (iostate == IOState::NeedWrite) { if (d_currentState == IOState::NeedWrite) { + if (ttd) { + /* let's update the TTD ! */ + d_mplexer->setWriteTTD(d_fd, *ttd, /* we pass 0 here because we already have a TTD */0); + } return; }