mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-07 18:51:21 +01:00
MINOR: bwlim: Remove useless test on CF_READ_ERROR to detect the last packet
There is already a test on CF_EOI and CF_SHUTR. The last one is always set when a read error is reported. Thus there is no reason to check CF_READ_ERROR.
This commit is contained in:
parent
11fddb9655
commit
b3ef9c392e
@ -151,7 +151,7 @@ static int bwlim_apply_limit(struct filter *filter, struct channel *chn, unsigne
|
||||
*/
|
||||
ret = tokens;
|
||||
if (tokens < conf->min_size) {
|
||||
ret = (chn->flags & (CF_EOI|CF_SHUTR|CF_READ_ERROR))
|
||||
ret = (chn->flags & (CF_EOI|CF_SHUTR))
|
||||
? MIN(len, conf->min_size)
|
||||
: conf->min_size;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user