MEDIUM: channel: wake up any request analyzer on response activity
This behavior is already existing for the "WAIT_HTTP" analyzer,
this patch just extends the system to any analyzer that would
be waked up on response activity.
diff --git a/src/session.c b/src/session.c
index 31a5182..063cbb8 100644
--- a/src/session.c
+++ b/src/session.c
@@ -2103,14 +2103,14 @@
unsigned int flags = s->rep->flags;
if ((s->rep->flags & CF_MASK_ANALYSER) &&
- (s->rep->analysers & AN_REQ_WAIT_HTTP)) {
+ (s->rep->analysers & AN_REQ_ALL)) {
/* Due to HTTP pipelining, the HTTP request analyser might be waiting
* for some free space in the response buffer, so we might need to call
* it when something changes in the response buffer, but still we pass
* it the request buffer. Note that the SI state might very well still
* be zero due to us returning a flow of redirects!
*/
- s->rep->analysers &= ~AN_REQ_WAIT_HTTP;
+ s->rep->analysers &= ~AN_REQ_ALL;
s->req->flags |= CF_WAKE_ONCE;
}