Hi Francois,
> Hi,
>
> I'm having an issue with the client timeout expiring unexpectedly.
>
> I am using haproxy v1.5.14 with the http-keep-alive option.
>
> In my use case, I have a client maintaining a long-lived connection
> through haproxy to a backend server. The backend server sends back a
> response 30 seconds after receiving a request, so I set the server
> timeout at 60 seconds to be safe. I'm keeping the client timeout at 5
> seconds.
>
> What I'm observing is the following:
> The client establishes a connection and sends a request.
> 30 seconds later, the server responds.
> Right after receiving the response, the client sends a new request
> through the same connection.
> 5 seconds later, the client timeout expires. In the logs, I see cD-- as
> the error code.
>
> When I increase the client timeout to above 30 seconds, then the client
> timeout no longer expires.
Did you configure "timeout http-keep-alive"? What if you set that
to 30 seconds and leave the client timeout at 5 seconds?
Do you have a tcpdump capture of the frontend traffic?
Regards,
Lukas