Hi:

I've got basic questions about HA Proxy ( 1.4.22, 64 bit ) , running as TCP
proxy

1)  My haproxy.cfg is like

backend servers
    mode tcp
    balance roundrobin
    server  machine1 machine1:4101 weight 50 check
    server  machine2 machine2:4102 weight 50 check
    default-server slowstart 3000


When both of servers are DOWN , and a client opens a new connection, it
never receives a 'Connection refused' . I guess that this client can
connect to haproxy, so that error doesn't happen

How I can detect that all of servers are DOWN when a client (socket) opens
a connection ?


2)  If both of servers are UP, and, suddenly,  one of them goes DOWN , I
would like a client ( TCP socket) who sent data by this connection, could
 know that response can contain corrupt data

How I can detect that a current TCP connection went down ?
So, I could to implement a retry


Thanks and regards

Reply via email to