Hi folks. Just following up here. Still wondering about the prior request.
After some more research, it seems that "txn.sess_term_state" is only
available in HAProxy 2.9. Might there be a fetcher in 2.8 that can achieve
something similar? Thanks for your time.

-Jesse

On Wed, Jan 3, 2024 at 5:14 PM J B <jessebr...@gmail.com> wrote:

> Hi folks,
>
>      I am using HAProxy version 2.8. When a connection refused event
> occurs with a downstream server, I want to use the runtime API to write
> some data to a map file. My first look at the HAProxy management guide
> showed that a 503 is returned by HAProxy when a connection is refused by
> the downstream server.
>
>     This approach seemingly worked well via the following:
> "http-after-response set-map(/path/to/my.map) %[key] %[value] if { status
> 503 }".
>
>     However, it was smartly brought to my attention that a 503 could be
> returned by HAProxy for other reasons. So now, I am wondering if there is a
> better fetcher to use for detecting a "connection refused" event from a
> downstream server?
>
>     Looking here <https://docs.haproxy.org/dev/configuration.html#8.5>,
> it looks like I could use something like: "if { txn.sess_term_state "SC"
> }", but I wanted to check to see if there would be a better fetcher for
> detecting something like this. Thank you for your time.
>
> -Jesse
>
>
>

Reply via email to