Skip to content

Commit

Permalink
out_http: Request timed out(408) to be treated as retry
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Sep 12, 2024
1 parent 072ffe7 commit 58c1330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/out_http/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58c1330

Please sign in to comment.