Skip to content

Commit

Permalink
upstream: always remove keepalive close event on shutdown if registered
Browse files Browse the repository at this point in the history
Resolves this issue: #6821

Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley authored and leonardo-albertovich committed Apr 12, 2023
1 parent 30f5a3e commit c70867e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ static int prepare_destroy_conn(struct flb_connection *u_conn)
flb_trace("[upstream] destroy connection #%i to %s:%i",
u_conn->fd, u->tcp_host, u->tcp_port);

if (flb_stream_is_async(&u->base)) {
if (MK_EVENT_IS_REGISTERED((&u_conn->event))) {
mk_event_del(u_conn->evl, &u_conn->event);
}

Expand Down

0 comments on commit c70867e

Please sign in to comment.