projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11fddb9
)
MINOR: bwlim: Remove useless test on CF_READ_ERROR to detect the last packet
author
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 26 Jan 2023 15:11:02 +0000
(16:11 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Mon, 13 Feb 2023 08:43:38 +0000
(09:43 +0100)
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.
src/flt_bwlim.c
patch
|
blob
|
history
diff --git
a/src/flt_bwlim.c
b/src/flt_bwlim.c
index
136be5c
..
20919fc
100644
(file)
--- a/
src/flt_bwlim.c
+++ b/
src/flt_bwlim.c
@@
-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;