Retry SD errors

Hi.

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]: 192.168.0.1:37014 [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 https://domain.com/web/assets/334-e80f7c3/web.assets_backend.min.js 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.

thanks,
Geoff

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.

https://cbonte.github.io/haproxy-dconv/2.4/configuration.html#4.2-retry-on

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!!