MEDIUM: http-ana: handle read error on server side if waiting for response
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Apr 2021 08:56:28 +0000 (10:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Apr 2021 08:51:08 +0000 (10:51 +0200)
commitf506d96839cf1128730b3bfb4e8f6c527b3a59c0
tree9b4d8884ecd3941b02d25a454cb45717d640909c
parent3d87558f3589c97c809c0c74be7c9fd08293db86
MEDIUM: http-ana: handle read error on server side if waiting for response

A read error on the server side is also reported as a write error on the
client side. It means some times, a server side error is handled on the
client side. Among others, it is the case when the client side is waiting
for the response while the request processing is already finished. In this
case, the error is not handled as a server error. It is not accurate.

So now, when the request processing is finished but not the response
processing and if a read error was encountered on the server side, the error
is not immediatly processed on the client side, to let a chance to response
analysers to properly catch the error.
src/http_ana.c