From 58c1330d77c82197d2d8cd134501e89d3982d437 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Wed, 11 Sep 2024 16:43:30 +0900 Subject: [PATCH] out_http: Request timed out(408) to be treated as retry Signed-off-by: Hiroshi Hatake --- plugins/out_http/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/out_http/http.c b/plugins/out_http/http.c index a0602b91e1a..4fa3d98615d 100644 --- a/plugins/out_http/http.c +++ b/plugins/out_http/http.c @@ -276,7 +276,8 @@ static int http_post(struct flb_out_http *ctx, flb_plg_error(ctx->ins, "%s:%i, HTTP status=%i", ctx->host, ctx->port, c->resp.status); } - if (c->resp.status >= 400 && c->resp.status < 500 && c->resp.status != 429) { + if (c->resp.status >= 400 && c->resp.status < 500 && + c->resp.status != 429 && c->resp.status != 408) { flb_plg_warn(ctx->ins, "could not flush records to %s:%i (http_do=%i), " "chunk will not be retried", ctx->host, ctx->port, ret);