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.

(cherry picked from commit c40e5c8653)
This commit is contained in:
Matthijs Mekking 2024-05-08 09:48:08 +02:00
parent 6f6d90fd51
commit e1a49ee6d4

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