mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-26 17:49:55 -05:00
stream reuse, free up elements that are connected in outside network delete.
This commit is contained in:
parent
8b43b94b22
commit
2d20edb39f
1 changed files with 10 additions and 2 deletions
|
|
@ -1509,10 +1509,18 @@ outside_network_delete(struct outside_network* outnet)
|
|||
size_t i;
|
||||
for(i=0; i<outnet->num_tcp; i++)
|
||||
if(outnet->tcp_conns[i]) {
|
||||
if(!outnet->tcp_conns[i]->query->
|
||||
on_tcp_waiting_list) {
|
||||
/* delete waiting_tcp elements that
|
||||
* the tcp conn is working on */
|
||||
struct pending_tcp* pend =
|
||||
(struct pending_tcp*)outnet->
|
||||
tcp_conns[i]->query->
|
||||
next_waiting;
|
||||
decommission_pending_tcp(outnet, pend);
|
||||
}
|
||||
comm_point_delete(outnet->tcp_conns[i]->c);
|
||||
waiting_tcp_delete(outnet->tcp_conns[i]->query);
|
||||
/* TODO: loop over tcpwrite wait list and
|
||||
* delete waiting_tcp_delete them */
|
||||
free(outnet->tcp_conns[i]);
|
||||
}
|
||||
free(outnet->tcp_conns);
|
||||
|
|
|
|||
Loading…
Reference in a new issue