Call reset_shutdown if uv_tcp_close_reset failed

If uv_tcp_close_reset() returns an error code, this means the
reset_shutdown callback has not been issued, so do it now.
This commit is contained in:
Matthijs Mekking
2024-05-08 09:48:08 +02:00
parent 5b94bb2129
commit c40e5c8653

View 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);