- Attempt fix for libevent state in tcp reuse cases after a packet

is written.
This commit is contained in:
W.C.A. Wijngaards 2020-11-25 12:12:35 +01:00
parent a5167e495f
commit d05c259458
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,8 @@
the tree key identity is preserved after cleanup of the TLS state.
- Remove debug commands from reuse tests.
- Fix memory leak for edns client tag opcode config element.
- Attempt fix for libevent state in tcp reuse cases after a packet
is written.
24 November 2020: Wouter
- Merge PR #283 : Stream reuse. This implements upstream stream

View file

@ -1010,6 +1010,7 @@ outnet_tcp_cb(struct comm_point* c, void* arg, int error,
* and we can write some more. */
pend->c->tcp_more_write_again = 1;
pend->query = reuse_write_wait_pop(&pend->reuse);
comm_point_stop_listening(pend->c);
outnet_tcp_take_query_setup(pend->c->fd, pend,
pend->query);
} else {
@ -1018,6 +1019,7 @@ outnet_tcp_cb(struct comm_point* c, void* arg, int error,
pend->c->tcp_more_read_again = 0;
pend->c->tcp_more_write_again = 0;
pend->c->tcp_is_reading = 1;
comm_point_stop_listening(pend->c);
reuse_tcp_setup_timeout(pend);
}
return 0;