mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 00:02:18 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue