]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "MEDIUM: http-ana: Deal with L7 retries in HTTP analysers"
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 May 2021 11:46:14 +0000 (13:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 May 2021 08:51:20 +0000 (10:51 +0200)
commit9f5382e45296da91d5c7f015469f0e743df1ffd0
treeb4cf4c9d8028869f713f22ebc78f28aa35c8bb16
parent44c0dcfe907fa1c610a5841086a86db63255fbde
Revert "MEDIUM: http-ana: Deal with L7 retries in HTTP analysers"

This reverts commit 5b82cc5b5c350c7cfa194cc6bc16ad9308784541. The purpose of
this commit was to fully handle L7 retries in HTTP analysers and stop to
deal with the L7 buffer in si_cs_send()/si_cs_recv(). It is of course
cleaner this way. But there is a huge drawback. The L7 buffer is reserved
from the time the request analysis is finished until the moment the response
is received. For a small request, the analysis is finished before the
connection to the server. Thus for the L7 buffer will be kept for queued
sessions while it is not mandatory.

So, for now, the commit is reverted to go back to the less expensive
solution. This patch must be backported to 2.4.
src/http_ana.c
src/stream.c
src/stream_interface.c