Using HAProxy in TCP mode, if I enable timeout client
, the TCP connection on client side is closed exactly after the timeout value, even if there is data passing inside the connection.
It looks like HAProxy always considers the connection idle, and does not recognize that traffic is passing. I need to proxy TCP traffic independent of the L7 protocol, as a stream of bytes.
My test is very simple, I’m using HAProxy in TCP mode with iperf3
as a client with below configuration.
defaults
timeout connect 5s
timeout client 5s
timeout server 0s
global
nbproc 1
nbthread 2
listen l1
mode tcp
bind 192.168.50.2:5201
server s1 192.168.100.3:5201