From af3b655c3f5b6047205ba1c3ae174895927ae035 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Thu, 3 Aug 2023 16:55:42 +0200 Subject: [PATCH] io: added code to detect non-recoverable connection errors Signed-off-by: Leonardo Alminana --- src/flb_io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flb_io.c b/src/flb_io.c index 40a45c0fda8..dbcfa607330 100644 --- a/src/flb_io.c +++ b/src/flb_io.c @@ -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; }