Hi all
We have an HA-Proxy version 2.2.9-2+deb11u3 2022/03/10
For a specific website, there is a connection on specific url that trigger some actions (processing and sending mail)
This connection need to wait at least 30min for the php-fpm at the backend webserver finish to process correctly.
But every 5 min maximum, haproxy seems closing the connection and return:
# Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server
Bypassing haproxy all is ok
See below the configuration:
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option http-keep-alive
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 20s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
FRONT:
frontend https-in
bind *:443 ssl crt /etc/letsencrypt/live/xxxx
maxconn 8000
http-response set-header Strict-Transport-Security “max-age=16000000; includeSubDomains; preload;”
acl is_erpcontroleg.domaine.com hdr_dom(host) -i erpcontroleg.domaine.com
use_backend backend_VM_CONTROLEG_ERP_HTTPS if is_erpcontroleg.domaine.com
BACKEND:
backend backend_VM_CONTROLEG_ERP_HTTPS
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
balance leastconn
option forwardfor
server VM_CONTROLEG_ERP_HTTPS 10.10.74.2:443 check ssl verify none maxconn 2000
1 post - 1 participant