# Haproxy retries using option redispatch

**URL:** <https://discourse.haproxy.org/t/haproxy-retries-using-option-redispatch/2214>\
**Category:** Help!\
**Created:** [March 7, 2018, 1:43pm UTC](https://discourse.haproxy.org/t/haproxy-retries-using-option-redispatch/2214 "2018-03-07T13:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumansatpathy](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sumansatpathy](https://discourse.haproxy.org/u/sumansatpathy)\
**Post date:** [March 7, 2018, 1:43pm UTC](https://discourse.haproxy.org/t/haproxy-retries-using-option-redispatch/2214/1 "2018-03-07T13:43:57Z")

</div>

Hi , I’m looking for some help in getting information where I want to understand the option redispatch’s reach on retries. Can I retry my requests on specific errors e.g. including some timeout responses received from my backend server

e.g. haproxy sends request to S1 ( S1 processes the request and realizes its taking so much time in processing and terminates the request with specific error code in HTTP response 503,504 even 500

If I want to retry the request on S2 then S3 which have failed with 500 e.g. for 3retries on round robin basis before abandoning it. Is it possible to configure?

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [March 7, 2018, 2:22pm UTC](https://discourse.haproxy.org/t/haproxy-retries-using-option-redispatch/2214/2 "2018-03-07T14:22:06Z")

</div>

No.

Retries and redispatch works when a TCP connection to the server could not be established, once the request is send, it cannot be replayed towards another server.

---

<div class="post-metadata">

**Author:** ![sumansatpathy](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sumansatpathy](https://discourse.haproxy.org/u/sumansatpathy)\
**Post date:** [March 8, 2018, 8:59am UTC](https://discourse.haproxy.org/t/haproxy-retries-using-option-redispatch/2214/3 "2018-03-08T08:59:10Z")

</div>

Thank you for getting this clarified.
