Preserve cancellation of pending outgoing attempts and size packet fixture correctly
This commit is contained in:
1 parent
b57221f6b5
commit
2e66cdb122
2 files changed
+2
-2
No files matched your search
@@ -1140,7 +1140,7 @@ static void ncd_handle_close(struct NODE_CONN_DIRECT* h, int force) {
|
||||
(unsigned long long)entry->node_id, entry->handle_count, force);
|
||||
if (entry->handle_count || entry->closed) { ncd_collect(entry); return; }
|
||||
struct ETCP_CONN* conn = entry->conn;
|
||||
if (force || !conn || conn->close_requested || conn->state == 2 || entry->timed_out) {
|
||||
if (force || !conn || conn->close_requested || conn->state == 2 || entry->timed_out || (!conn->state && !conn->links_up)) {
|
||||
ncd_finish(entry, 1); return;
|
||||
}
|
||||
if (!conn->links_up) {
|
||||
|
||||
Reference in new issue
Block a user