Skip to content

Commit 58c1330

Browse files
cosmo0920edsiper
authored andcommitted
out_http: Request timed out(408) to be treated as retry
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 072ffe7 commit 58c1330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/out_http/http.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ static int http_post(struct flb_out_http *ctx,
276276
flb_plg_error(ctx->ins, "%s:%i, HTTP status=%i",
277277
ctx->host, ctx->port, c->resp.status);
278278
}
279-
if (c->resp.status >= 400 && c->resp.status < 500 && c->resp.status != 429) {
279+
if (c->resp.status >= 400 && c->resp.status < 500 &&
280+
c->resp.status != 429 && c->resp.status != 408) {
280281
flb_plg_warn(ctx->ins, "could not flush records to %s:%i (http_do=%i), "
281282
"chunk will not be retried",
282283
ctx->host, ctx->port, ret);

0 commit comments

Comments
 (0)