output: retry_limit allows a 'false' value for unlimited retries
@@ -290,7 +290,13 @@ int flb_output_set_property(struct flb_output_instance *out, char *k, char *v)
}
else if (prop_key_check("retry_limit", k, len) == 0) {
if (tmp) {
+ if (strcmp(tmp, "false") == 0 || strcmp(tmp, "off") == 0) {
+ /* No limits for retries */
+ out->retry_limit = -1;
+ }
+ else {
out->retry_limit = atoi(tmp);
+ }
flb_free(tmp);
}
else {
