mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:50:00 -04:00
Do not runtime check uv_tcp_close_reset
When we reset a TCP connection by sending a RST packet, do not bother
requiring the result is a success code.
(cherry picked from commit 5b94bb2129)
This commit is contained in:
parent
eaacc6d4d6
commit
6f6d90fd51
1 changed files with 6 additions and 1 deletions
|
|
@ -3014,7 +3014,12 @@ isc__nmsocket_reset(isc_nmsocket_t *sock) {
|
|||
isc__nmsocket_attach(sock, &(isc_nmsocket_t *){ NULL });
|
||||
int r = uv_tcp_close_reset(&sock->uv_handle.tcp,
|
||||
reset_shutdown);
|
||||
UV_RUNTIME_CHECK(uv_tcp_close_reset, r);
|
||||
if (r != 0) {
|
||||
isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL,
|
||||
ISC_LOGMODULE_NETMGR, ISC_LOG_DEBUG(1),
|
||||
"TCP Reset (RST) failed: %s",
|
||||
uv_strerror(r));
|
||||
}
|
||||
} else {
|
||||
isc__nmsocket_shutdown(sock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue