]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua/htx: Reset channels analyzers when txn:done() is called
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Jul 2019 14:40:24 +0000 (16:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Jul 2019 09:17:52 +0000 (11:17 +0200)
commitfe6a71b8e08234dbe03fbd2fa3017590681479df
tree486b9b9f46f4a8bf537578e718e101cce6aff556
parent0d00b544c3bdc9dc1796aca28bad46b3c1867184
BUG/MINOR: hlua/htx: Reset channels analyzers when txn:done() is called

For HTX streams, when txn:done() is called, the work is delegated to the
function http_reply_and_close(). But it is not enough. The channel's analyzers
must also be reset. Otherwise, some analyzers may still be called while
processing should be aborted.

For instance, if the function is called from an http-request rules on the
frontend, request analyzers on the backend side are still called. So we may try
to add an header to the request, while this one was already reset.

This patch must be backported to 2.0 and 1.9.
src/hlua.c