diff --git a/src/flb_io.c b/src/flb_io.c index 75670c74f0c..a8a73e4279e 100644 --- a/src/flb_io.c +++ b/src/flb_io.c @@ -167,7 +167,7 @@ static int net_io_connect_async(struct flb_upstream *u, * means a failure. */ err = flb_socket_error(u_conn->fd); - if (!FLB_EINPROGRESS(err)) { + if (!FLB_EINPROGRESS(err) && err != 0) { flb_errno(); flb_error("[io] connection #%i failed to: %s:%i", u_conn->fd, u->tcp_host, u->tcp_port);