MINOR: cache/filters: Initialize the cache filter when stream is created
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:52:06 +0000 (14:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 14:36:04 +0000 (15:36 +0100)
commit65554e1b959eacf71b4e385b6af97b3781c401f9
tree2d23585e8ec115944690534093c61a0af2c263ef
parentd4a824e533ef940e9726dbf3d3f94993d97d6391
MINOR: cache/filters: Initialize the cache filter when stream is created

Since the HTX mode is the only mode to process HTTP messages, the stream is
created for a uniq transaction. The keep-alive is handled at the mux level. So,
the cache filter can be initialized when the stream is created and released with
the stream. Concretly, .channel_start_analyze and .channel_end_analyze callback
functions are replaced by .attach and .detach ones.

With this change, it is no longer necessary to call FLT_START_FE/BE and FLT_END
analysers for the cache filter.
src/cache.c