[MEDIUM] tcp-request : don't wait for inspect-delay to expire when the buffer is full
If a request buffer is full, there's no point waiting for the timeout to
expire, the contents will not change.
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index 2670666..22179b9 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -646,7 +646,7 @@
* - if one rule returns KO, then return KO
*/
- if (req->flags & BF_SHUTR || !s->be->tcp_req.inspect_delay || tick_is_expired(req->analyse_exp, now_ms))
+ if (req->flags & (BF_SHUTR|BF_FULL) || !s->be->tcp_req.inspect_delay || tick_is_expired(req->analyse_exp, now_ms))
partial = 0;
else
partial = ACL_PARTIAL;