]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: rhttp: initialize session origin after preconnect reversal
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 May 2024 13:06:52 +0000 (15:06 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 May 2024 12:47:21 +0000 (14:47 +0200)
commit98ed11b0c5a8b92d2cfd876ca31e9fa6c4f5a9df
tree1f333859203014c17436891a6d6c053322a21b34
parent47168e217a3af5f51abe6b1dabaed54274f0790b
BUG/MINOR: rhttp: initialize session origin after preconnect reversal

Since the following commit, session is initialized early for rhttp
preconnect.

  12c40c25a9520fe3365950184fe724a1f4e91d03
  MEDIUM: rhttp: create session for active preconnect

Session origin member was not set. However, this prevents several
session fetches to not work as expected. Worst, this caused a regression
as previously session was created after reversal with origin member
defined. This was reported by user William Manley on the mailing-list
which rely on set-dst.

One possible fix would be to set origin on session_new(). However, as
this is done before reversal, some session members may be incorrectly
initialized, in particular source and destination address.

Thus, session origin is only set after reversal is completed. This
ensures that session fetches have the same behavior on standard
connections and reversable ones.

This does not need to be backported.
src/connection.c
src/proto_rhttp.c