- Fix assertion failure on double callback when iterator loses

interest in query at head of line that then has the tcp stream
  not kept for reuse.
This commit is contained in:
W.C.A. Wijngaards 2020-11-30 09:41:33 +01:00
parent 56a80fbbf4
commit e4bdc527ba
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
30 November 2020: Wouter
- Fix assertion failure on double callback when iterator loses
interest in query at head of line that then has the tcp stream
not kept for reuse.
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. - Fix when use free buffer to initialize rbtree for stream reuse.

View file

@ -2321,9 +2321,7 @@ reuse_tcp_remove_serviced_keep(struct waiting_tcp* w,
* the stream itself. also keep it as an entry in the tree_by_id, * the stream itself. also keep it as an entry in the tree_by_id,
* in case the answer returns (that we no longer want), but we cannot * in case the answer returns (that we no longer want), but we cannot
* pick the same ID number meanwhile */ * pick the same ID number meanwhile */
if(pend_tcp->query) { w->cb = NULL;
pend_tcp->query->cb = NULL;
}
/* see if can be entered in reuse tree /* see if can be entered in reuse tree
* for that the FD has to be non-1 */ * for that the FD has to be non-1 */
if(pend_tcp->c->fd == -1) { if(pend_tcp->c->fd == -1) {