mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix when use free buffer to initialize rbtree for stream reuse.
This commit is contained in:
parent
11139c1b4e
commit
8ffdbc2714
2 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
27 November 2020: Wouter
|
27 November 2020: Wouter
|
||||||
- Fix compile warning for type cast in http2_submit_dns_response.
|
- Fix compile warning for type cast in http2_submit_dns_response.
|
||||||
|
- Fix when use free buffer to initialize rbtree for stream reuse.
|
||||||
|
|
||||||
26 November 2020: Wouter
|
26 November 2020: Wouter
|
||||||
- Fix to omit UDP receive errors from log, if verbosity low.
|
- Fix to omit UDP receive errors from log, if verbosity low.
|
||||||
|
|
|
||||||
|
|
@ -742,6 +742,11 @@ use_free_buffer(struct outside_network* outnet)
|
||||||
w);
|
w);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
struct pending_tcp* pend = w->outnet->tcp_free;
|
||||||
|
rbtree_init(&pend->reuse.tree_by_id, reuse_id_cmp);
|
||||||
|
pend->reuse.pending = pend;
|
||||||
|
memcpy(&pend->reuse.addr, &w->addr, w->addrlen);
|
||||||
|
pend->reuse.addrlen = w->addrlen;
|
||||||
if(!outnet_tcp_take_into_use(w)) {
|
if(!outnet_tcp_take_into_use(w)) {
|
||||||
waiting_tcp_callback(w, NULL, NETEVENT_CLOSED,
|
waiting_tcp_callback(w, NULL, NETEVENT_CLOSED,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue