Hi! I have a questing about retry mechanism. What shout be the result when request exceeds all retries? Right now I see that response will bee 502 and do not forward the last error from last attempt, that would be what we want. Is there a way to do it?
You are probably using retry-on on HTTP codes.
What you get is the expected behavior. I don’t know how complex it would be to return the last (invalid) HTTP response instead.
You can file a feature request on github if you want:
For the history. It was a bug and was fixed in https://github.com/haproxy/haproxy/issues/439