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