From d65fdf0ac9fd63b5e8625701690d6ff75db8a71e Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 24 Feb 2021 15:20:03 +0100 Subject: [PATCH] dnsdist: Also update the TTD on a 'write' IO update --- pdns/dnsdistdist/tcpiohandler-mplexer.hh | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.47.2