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>
Mon, 19 Apr 2021 06:31:05 +0000 (08:31 +0200)
commit242f8ce060e4d77da16ae43a58598a28b556ee5b
treea1448ef9fcd59e18e1f302f26e32d3dd65be6b50
parentf4dd9ae5c7ca65cd5c2652343e4af5ca7a97ab32
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.
src/connection.c