From: W.C.A. Wijngaards Date: Thu, 26 Nov 2020 11:23:18 +0000 (+0100) Subject: - Clear readagain upon decommission of pending tcp structure. X-Git-Tag: release-1.13.0rc3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fb0493d3f16010b5193b969e89998a005743d97;p=thirdparty%2Funbound.git - Clear readagain upon decommission of pending tcp structure. --- diff --git a/doc/Changelog b/doc/Changelog index 91d34a61e..d0b9f223c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ These happen because of udp-connect. - For #352: contrib/metrics.awk for Prometheus style metrics output. - Fix that after failed read, the readagain cannot activate. + - Clear readagain upon decommission of pending tcp structure. 25 November 2020: Wouter - with udp-connect ignore connection refused with UDP timeouts. diff --git a/services/outside_network.c b/services/outside_network.c index 84876ff3f..72469323e 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -909,6 +909,8 @@ decommission_pending_tcp(struct outside_network* outnet, #endif } comm_point_close(pend->c); + pend->reuse.cp_more_read_again = 0; + pend->reuse.cp_more_write_again = 0; /* unlink the query and writewait list, it is part of the tree * nodes and is deleted */ pend->query = NULL;