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 DOC: add minimal documentation on how ACLs work internally 2011-12-30 17:33:27 +01:00
body-parsing.txt MINOR: filters/http: Slightly update the parsing of chunks 2016-02-09 14:53:15 +01:00
buffer-operations.txt DOC: add a diagram to explain how circular buffers work 2012-04-30 11:57:00 +02:00
buffer-ops.fig DOC: add a diagram to explain how circular buffers work 2012-04-30 11:57:00 +02:00
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 [DOC] add a few old and uncommitted docs 2011-09-05 01:04:44 +02:00
filters.txt BUG/MAJOR: channel: Fix the definition order of channel analyzers 2017-01-05 17:58:22 +01:00
hashing.txt DOC: Documentation for hashing function, with test results. 2013-11-20 22:14:47 +01:00
header-parser-speed.txt
header-tree.txt
http-cookies.txt
http-docs.txt
http-parsing.txt DOC: add some documentation from RFC3986 about URI format 2012-01-07 23:58:54 +01:00
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 DOC: pattern: pattern organisation schematics 2014-03-20 14:10:49 +01:00
pattern.pdf DOC: pattern: pattern organisation schematics 2014-03-20 14:10:49 +01:00
polling-states.fig DOC: add a diagram showing polling state transitions 2014-01-26 00:42:29 +01:00
repartition-be-fe-fi.txt
sequence.fig DOC: commit a few old design thoughts files 2014-06-19 21:02:32 +02:00
stats-v2.txt
stream-sock-states.fig [DOC] internal: reflect the fact that SI_ST_ASS is transient 2011-03-03 16:40:09 +01:00