mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: ring: maxlen warning reported as alert
When maxlen parameter exceeds sink size, a warning is generated and maxlen is enforced to sink size. But the err_code is incorrectly set to ERR_ALERT Indeed, being a "warning", ERR_WARN should be used here. This may be backported as far as 2.2
This commit is contained in:
parent
30ff33bd9b
commit
c103379847
@ -1191,7 +1191,7 @@ int cfg_post_parse_ring()
|
||||
ha_warning("ring '%s' event max length '%u' exceeds size, forced to size '%lu'.\n",
|
||||
cfg_sink->name, cfg_sink->maxlen, (unsigned long)b_size(&cfg_sink->ctx.ring->buf));
|
||||
cfg_sink->maxlen = b_size(&cfg_sink->ctx.ring->buf);
|
||||
err_code |= ERR_ALERT;
|
||||
err_code |= ERR_WARN;
|
||||
}
|
||||
|
||||
/* prepare forward server descriptors */
|
||||
|
Loading…
Reference in New Issue
Block a user