We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961ed61 commit 1938ec8Copy full SHA for 1938ec8
src/flb_upstream.c
@@ -649,7 +649,7 @@ int flb_upstream_conn_timeouts(struct mk_list *list)
649
}
650
651
/* Iterate every busy connection */
652
- mk_list_foreach(u_head, &uq->busy_queue) {
+ mk_list_foreach_safe(u_head, tmp, &uq->busy_queue) {
653
u_conn = mk_list_entry(u_head, struct flb_upstream_conn, _head);
654
655
drop = FLB_FALSE;
@@ -674,6 +674,7 @@ int flb_upstream_conn_timeouts(struct mk_list *list)
674
*/
675
shutdown(u_conn->fd, SHUT_RDWR);
676
u_conn->net_error = ETIMEDOUT;
677
+ prepare_destroy_conn(u_conn);
678
679
680
0 commit comments