Hi,
On 2014/10/23 13:24, 王继红 wrote:
Hi Godbach
Another question I want to ask, I see when the backend web server
response time is more than 50s, then the haproxy will return http 504 to
the client user,
if the web server response the request but the response content is
partly to the haproxy server (async process in web server internal)
, whether the haproxy will response the partly content to client user so
the user will not get a 504 error?
Regards
HAProxy will only emit HTTP 504 to client if it can not get the whole
header of http response.
So if HAProxy can receive the whole http header of response, it can
forward the data all it received to client successfully, maybe including
partial body, http 504 will not be emitted anymore. Meanwhile, HAProxy
will reset the connection if it cannot received more data of http body
for a long time which exceeds server timeout.
For your situation, you can enlarge the server timeout value by the
following configuration to avoid 504:
timeout server <timeout>
--
Best Regards,
Godbach