Skip to content

Commit

Permalink
- Fix for #411, #439, #469: stream reuse, fix LRU list when reuse is
Browse files Browse the repository at this point in the history
  already in the tree.
  • Loading branch information
gthess committed Jul 23, 2021
1 parent f9ad139 commit 2245712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/outside_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ reuse_tcp_insert(struct outside_network* outnet, struct pending_tcp* pend_tcp)
pend_tcp->reuse.node.key = &pend_tcp->reuse;
pend_tcp->reuse.pending = pend_tcp;
if(!rbtree_insert(&outnet->tcp_reuse, &pend_tcp->reuse.node)) {
/* this is a duplicate connection, close this one */
/* We are not in the LRU list but we are already in the
* tcp_reuse tree, strange.
* Continue to add ourselves to the LRU list. */
verbose(VERB_CLIENT, "reuse_tcp_insert: duplicate connection");
pend_tcp->reuse.node.key = NULL;
return 0;
}
/* insert into LRU, first is newest */
pend_tcp->reuse.lru_prev = NULL;
Expand Down

0 comments on commit 2245712

Please sign in to comment.