mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
[MINOR] buffer: refine the flags that may wake an analyser up.
Analysers don't care (and must not care) about a few flags such as BF_AUTO_CLOSE or BF_AUTO_CONNECT, so those flags should not be listed in the BF_MASK_STATIC bitmask. We should also recheck if some buffer flags should be ignored or not in process_session() when deciding if we must loop again or not.
This commit is contained in:
parent
decd14d298
commit
1d315eaa24
@ -123,8 +123,8 @@
|
||||
/* Masks which define input events for stream analysers */
|
||||
#define BF_MASK_ANALYSER (BF_READ_ATTACHED|BF_READ_ACTIVITY|BF_READ_TIMEOUT|BF_ANA_TIMEOUT|BF_WRITE_ACTIVITY)
|
||||
|
||||
/* Mask for static flags which are not events, but might change during processing */
|
||||
#define BF_MASK_STATIC (BF_OUT_EMPTY|BF_FULL|BF_HIJACK|BF_AUTO_CLOSE|BF_AUTO_CONNECT|BF_SHUTR|BF_SHUTW|BF_SHUTR_NOW|BF_SHUTW_NOW)
|
||||
/* Mask for static flags which cause analysers to be woken up when they change */
|
||||
#define BF_MASK_STATIC (BF_OUT_EMPTY|BF_FULL|BF_SHUTR|BF_SHUTW|BF_SHUTR_NOW|BF_SHUTW_NOW)
|
||||
|
||||
|
||||
/* Analysers (buffer->analysers).
|
||||
|
Loading…
x
Reference in New Issue
Block a user