]> git.kaiwu.me - haproxy.git/commit
MINOR: http-ana: Simplify creation/destruction of HTTP transactions
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Mar 2021 18:12:58 +0000 (19:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 09:06:48 +0000 (11:06 +0200)
commit75f619ad922a53296fc958299550c6fed4a60055
treec154ce269a6c1af12c5f555c74ae46d3b1a24fd4
parentc2ac5e4f275421be5318778fbcf89ec446de2bfe
MINOR: http-ana: Simplify creation/destruction of HTTP transactions

Now allocation and initialization of HTTP transactions are performed in a
unique function. Historically, there were two functions because the same TXN
was reset for K/A connections in the legacy HTTP mode. Now, in HTX, K/A
connections are handled at the mux level. A new stream, and thus a new TXN,
is created for each request. In addition, the function responsible to end
the TXN is now also reponsible to release it.

So, now, http_create_txn() and http_destroy_txn() must be used to create and
destroy an HTTP transaction.
include/haproxy/http_ana.h
src/frontend.c
src/http_ana.c
src/http_fetch.c
src/proxy.c
src/stream.c