Skip to content

Commit

Permalink
io: added code to detect non-recoverable connection errors
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Aug 31, 2023
1 parent f7637f0 commit af3b655
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ static FLB_INLINE ssize_t net_io_read_async(struct flb_coro *co,

goto retry_read;
}
else {
net_io_propagate_critical_error(connection);
}

ret = -1;
}
Expand Down

0 comments on commit af3b655

Please sign in to comment.