# Client get connection timeout with HAProxy 1.5

**URL:** <https://discourse.haproxy.org/t/client-get-connection-timeout-with-haproxy-1-5/4955>\
**Category:** Help!\
**Created:** [March 14, 2020, 4:13am UTC](https://discourse.haproxy.org/t/client-get-connection-timeout-with-haproxy-1-5/4955 "2020-03-14T04:13:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanhnb](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@thanhnb](https://discourse.haproxy.org/u/thanhnb)\
**Post date:** [March 14, 2020, 4:13am UTC](https://discourse.haproxy.org/t/client-get-connection-timeout-with-haproxy-1-5/4955/1 "2020-03-14T04:13:12Z")

</div>

I use HAProxy as LB for 3 backend web (Apache, same code).  
Sometime client on browser get ERROR connection timeout when connect to HAProxy.  
I have written a custom script CURL from laptop to my web and run it (1 request per second, during 8 hours)  
If my script CURL execute request GET to HAProxy node as LB, sometime my script logged error Timeout request (1-2 ERROR per 20-30 minute). When ERROR Timeout request happend, i see log haproxy process request and return status 200 to client, respone time ~ 0.5s, but client dont get haproxy response.

If my script CURL execute directly request GET to Apache Web Server, it work Like a charm.

This my haproxy config: [https://paste.cloud365.vn/?77901e48f1c63e75#SeXKZfbDYUpQxM/B38wZQqkULfHXXW+pKHMz4mSuFNs=](https://paste.cloud365.vn/?77901e48f1c63e75#SeXKZfbDYUpQxM/B38wZQqkULfHXXW+pKHMz4mSuFNs=)

---

<div class="post-metadata">

**Author:** ![thanhnb](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@thanhnb](https://discourse.haproxy.org/u/thanhnb)\
**Post date:** [March 14, 2020, 4:16am UTC](https://discourse.haproxy.org/t/client-get-connection-timeout-with-haproxy-1-5/4955/2 "2020-03-14T04:16:22Z")

</div>

I have try mode lb TCP and HTTP but ERROR (Connection timeout) still happend.

---

<div class="post-metadata">

**Author:** ![thanhnb](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@thanhnb](https://discourse.haproxy.org/u/thanhnb)\
**Post date:** [March 14, 2020, 4:31am UTC](https://discourse.haproxy.org/t/client-get-connection-timeout-with-haproxy-1-5/4955/3 "2020-03-14T04:31:54Z")

</div>

I have try Nginx as alternative lb but it still happend. ☹

---

<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 15, 2020, 11:09am UTC](https://discourse.haproxy.org/t/client-get-connection-timeout-with-haproxy-1-5/4955/4 "2020-03-15T11:09:47Z")

</div>

Share the output of `haproxy -vv`,the actual haproxy log showing this request as well as the curl request output with `-vv` verbose output.
