Hello,
I want to know that does there are any same function as fe_conn or be_conn which support tcp mode rather than http mode. As I want to try limit the number of concurrent session at TCP mode.
Thanks!
Hello,
I want to know that does there are any same function as fe_conn or be_conn which support tcp mode rather than http mode. As I want to try limit the number of concurrent session at TCP mode.
Thanks!
I don’t see why fe_conn or be_conn would not work in TCP mode.
Hello
My config is like this
frontend www-https
bind *:443
maxconn 1000
mode tcp
option tcplog
reqadd X-Forwarded-Proto:\ https
acl max_conn_reached fe_conn gt 40
use_backend over_conn if max_conn_reached
default_backend www-backend-https
backend over_conn
mode tcp
errorfile 503 /etc/haproxy/errors/503.http
When reach the limit. It show from log jump to “over_conn” by it fail to shown preset log
Aug 2 23:43:36 haproxyhkfygcorpweb haproxy[4106]: 111.222.333.444:31618 [02/Aug/2019:23:43:36.953] www-https over_conn/ -1/-1/0 0 SC 42/41/0/0/0 0/0
At browser, it showing error code
. PR_END_OF_FILE_ERROR
Not sure where is work setting.
Thanks!