Retry SD errors


Running HA-Proxy version 2.2.14-a07ac36 on pfsense 2.5.2.

I am getting an SD error. I know this is caused by the backend server aborting the connection during the data send phase. I haven’t figured out why it is doing this yet, but everything else seems to be working OK.

Feb  4 14:38:25 fw1 haproxy[14494]: [04/Feb/2022:14:38:22.412] HTTPS_443~ Production_ipvANY/si-erp14 0/0/0/216/2799 200 3455367 - - SD-- 4/4/0/0/0 0/0 "GET HTTP/2.0" 

Is there a way to force haproxy to retry the request?

Right now it returns a 200 status message to the client and it just hangs the application because the javascript file is truncated.

I have “retries 3” in the back end configuration, but that doesn’t seem to do anything.


There is nothing to retry if the data is already streamed to the client, how would haproxy tell the browser that this transaction is broken?

The only way to work around this would be to buffer the entire HTTP response from the server, and then decide whether to send the response to the client or not. And then you’d be able to retry the request.

This requires haproxy to buffer everything, but this is limited to bufsize.

What you are saying makes sense about buffering the response.

I guess I need to figure out why the odoo application server is closing the connection.

thank you!!