]> 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:16:32 +0000 (08:16 +0000)
If uv_tcp_close_reset() returns an error code, this means the
reset_shutdown callback has not been issued, so do it now.

(cherry picked from commit c40e5c865313c8d538650a8bab71fc4c576705c2)

lib/isc/netmgr/netmgr.c

index 8ca1f8c1552ca7c7d4cca7b0ced32315ebcf74ad..820099553d5eae655b2771afda193c688818f341 100644 (file)
@@ -3019,6 +3019,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);