]> granicus.if.org Git - pdns/commit
On read error we remove the fd from the set. If there are still queries in-flight
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 9 Oct 2019 09:12:38 +0000 (11:12 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 9 Oct 2019 09:12:38 +0000 (11:12 +0200)
commit3cabb7508fbb95c63b7efd9f9f1df020200c27ed
tree935c542203c55fa72c5e9ade434f3befc3e31f07
parentb5b94bebe20ed9ff0fd5fa06bb937b1eaf6c6112
On read error we remove the fd from the set. If there are still queries in-flight
we will add it back if the in-flight condition is true.
This is not a real problem as the next handleTCPClientReadable() will take care.
Add a comment to explain that.
Also, setting the TTD might throw so handle that.
We might need a forgiving variant of removeReadFD() and setReadTTD().
pdns/pdns_recursor.cc