Skip to content

Commit

Permalink
- Fix for #411, #439, #469: stream reuse, fix linking when touching the
Browse files Browse the repository at this point in the history
  tcp_reuse LRU list.
  • Loading branch information
gthess committed Jul 23, 2021
1 parent e2221f3 commit f9ad139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/outside_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9ad139

Please sign in to comment.