]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compression/filters: Initialize the comp filter when stream is created
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:59:05 +0000 (14:59 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 14:36:04 +0000 (15:36 +0100)
commit5e896510a8ea8a429fc3d68a31d3288562f7fa63
tree7d8d3c4acfaf258ee6ef578d8b1c7aa6d6d0ade2
parent65554e1b959eacf71b4e385b6af97b3781c401f9
MINOR: compression/filters: Initialize the comp 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 compression 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 compression filter.
src/flt_http_comp.c