MINOR: connection: Make bc_http_major compatible with tcp-checks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Apr 2021 13:46:49 +0000 (15:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Apr 2021 08:13:37 +0000 (10:13 +0200)
commit663c09ce05406727f84accb4c13d96e69de0bb1b
tree0a452f9e2000d4fb6ad68b7b44e24accc35f737d
parent5dfe7dccd4b4051256e30d4652a6b889e73e2239
MINOR: connection: Make bc_http_major compatible with tcp-checks

bc_http_major sample fetch now works when it is called from a
tcp-check. When it happens, the session origin is a check. The backend
connection is retrieved from the conn-stream attached to the check.

If required, this path may easily be backported as far as 2.2.

(cherry picked from commit 242f8ce060e4d77da16ae43a58598a28b556ee5b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/connection.c