haproxy/doc/internals
Christopher Faulet 0184ea71a6 BUG/MAJOR: channel: Fix the definition order of channel analyzers
It is important to defined analyzers (AN_REQ_* and AN_RES_*) in the same order
they are evaluated in process_stream. This order is really important because
during analyzers evaluation, we run them in the order of the lower bit to the
higher one. This way, when an analyzer adds/removes another one during its
evaluation, we know if it is located before or after it. So, when it adds an
analyzer which is located before it, we can switch to it immediately, even if it
has already been called once but removed since.

With the time, and introduction of new analyzers, this order was broken up. the
main problems come from the filter analyzers. We used values not related with
their evaluation order. Furthermore, we used same values for request and response
analyzers.

So, to fix the bug, filter analyzers have been splitted in 2 distinct lists to
have different analyzers for the request channel than those for the response
channel. And of course, we have moved them to the right place.

Some other analyzers have been reordered to respect the evaluation order:

  * AN_REQ_HTTP_TARPIT has been moved just before AN_REQ_SRV_RULES
  * AN_REQ_PRST_RDP_COOKIE has been moved just before AN_REQ_STICKING_RULES
  * AN_RES_STORE_RULES has been moved just after AN_RES_WAIT_HTTP

Note today we have 29 analyzers, all stored into a 32 bits bitfield. So we can
still add 4 more analyzers before having a problem. A good way to fend off the
problem for a while could be to have a different bitfield for request and
response analyzers.

[wt: all of this must be backported to 1.7, and part of it must be backported
 to 1.6 and 1.5]
2017-01-05 17:58:22 +01:00
..
acl.txt
body-parsing.txt MINOR: filters/http: Slightly update the parsing of chunks 2016-02-09 14:53:15 +01:00
buffer-operations.txt
buffer-ops.fig
connect-status.txt
connection-header.txt
connection-scale.txt
entities-v2.txt DOC: add doc/internals/entities-v2.txt 2015-08-11 12:17:41 +02:00
entities.fig DOC: update the entities diagrams 2015-04-21 14:15:40 +02:00
entities.pdf DOC: update the entities diagrams 2015-04-21 14:15:40 +02:00
entities.svg DOC: update the entities diagrams 2015-04-21 14:15:40 +02:00
entities.txt
filters.txt BUG/MAJOR: channel: Fix the definition order of channel analyzers 2017-01-05 17:58:22 +01:00
hashing.txt
header-parser-speed.txt
header-tree.txt
http-cookies.txt
http-docs.txt
http-parsing.txt
list.fig DOC: add the documentation about internal circular lists 2015-09-20 22:43:56 +02:00
lua_socket.fig DOC: lua: schematics about lua socket organization 2015-06-03 15:53:04 +02:00
lua_socket.pdf DOC: lua: schematics about lua socket organization 2015-06-03 15:53:04 +02:00
naming.txt
pattern.dia
pattern.pdf
polling-states.fig
repartition-be-fe-fi.txt
sequence.fig
stats-v2.txt
stream-sock-states.fig