]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call reset_shutdown if uv_tcp_close_reset failed
authorMatthijs Mekking <matthijs@isc.org>
Wed, 8 May 2024 07:48:08 +0000 (09:48 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 3 Jun 2024 08:14:47 +0000 (10:14 +0200)
If uv_tcp_close_reset() returns an error code, this means the
reset_shutdown callback has not been issued, so do it now.

lib/isc/netmgr/netmgr.c

index a56fef10f74a0890044839efa94101811741d61c..7ee0502ae16551df9ad5afeb3afef16c0df891c1 100644 (file)
@@ -1948,6 +1948,7 @@ isc__nmsocket_reset(isc_nmsocket_t *sock) {
                                      ISC_LOGMODULE_NETMGR, ISC_LOG_DEBUG(1),
                                      "TCP Reset (RST) failed: %s",
                                      uv_strerror(r));
+                       reset_shutdown(&sock->uv_handle.handle);
                }
        } else {
                isc__nmsocket_shutdown(sock);