mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-23 15:12:55 -05:00
tcp_reuse LRU list.
This commit is contained in:
parent
e2221f3388
commit
f9ad139c08
1 changed files with 3 additions and 0 deletions
|
|
@ -753,6 +753,9 @@ reuse_tcp_lru_touch(struct outside_network* outnet, struct reuse_tcp* reuse)
|
|||
/* insert at the front */
|
||||
reuse->lru_prev = NULL;
|
||||
reuse->lru_next = outnet->tcp_reuse_first;
|
||||
if(outnet->tcp_reuse_first) {
|
||||
outnet->tcp_reuse_first->lru_prev = reuse;
|
||||
}
|
||||
log_assert(reuse->lru_next != reuse);
|
||||
/* since it is not first, it is not the only element and
|
||||
* lru_next is thus not NULL and thus reuse is now not the last in
|
||||
|
|
|
|||
Loading…
Reference in a new issue