]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Clear readagain upon decommission of pending tcp structure.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 26 Nov 2020 11:23:18 +0000 (12:23 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 26 Nov 2020 11:23:18 +0000 (12:23 +0100)
doc/Changelog
services/outside_network.c

index 91d34a61ed18f81bc5fea41709467dbe5655d48f..d0b9f223cc15979b47e3f8081722c068733ed288 100644 (file)
@@ -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.
index 84876ff3f7daff0ce13825aa90cb9b4f7604f627..72469323e66f9b86ee8135ce5a9c85312caa4ba7 100644 (file)
@@ -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;