Skip to content

Commit

Permalink
FIXME removed from list
Browse files Browse the repository at this point in the history
We have similar code in the first version of nc-server:
    2017-02-27 tests-bin: add nc-server utility
    1e337be
  • Loading branch information
gperciva committed Mar 10, 2024
1 parent 4c399e0 commit e6579c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spiped/dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,16 @@ dispatch_shutdown(void * dispatch_cookie)
* callback_conndied(), which removes the relevant conn_list_node from
* the list of conn_cookies.
*/
while ((C = LIST_FIRST(&A->conn_cookies)) != NULL)
while ((C = LIST_FIRST(&A->conn_cookies)) != NULL) {
proto_conn_drop(C->conn_cookie, PROTO_CONN_CANCELLED);

/*
* Convince static analyzers that C->conn_cookie is no longer
* in the list.
*/
assert(C != LIST_FIRST(&A->conn_cookies));
}

if (A->accept_cookie != NULL)
network_accept_cancel(A->accept_cookie);
if (A->dnstimer_cookie != NULL)
Expand Down

0 comments on commit e6579c2

Please sign in to comment.