]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: filters: Review and simplify errors handling
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Apr 2023 12:49:04 +0000 (14:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 10:13:09 +0000 (12:13 +0200)
commit0adffb62c1ba62dbd8dca21d63cbcd9c201ee210
treeba7de0b0165a6d5ab943f679228113c362535f3c
parentdbad8ec787e80a67b70d8ca7dc9b06a773884723
MINOR: filters: Review and simplify errors handling

First, it is useless to abort the both channel explicitly. For HTTP streams,
http_reply_and_close() is called. This function already take care to abort
processing. For TCP streams, we can rely on stream_retnclose().

To set termination flags, we can also rely on http_set_term_flags() for HTTP
streams and sess_set_term_flags() for TCP streams. Thus no reason to handle
them by hand.

At the end, the error handling after filters evaluation is now quite simple.
src/filters.c