]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: add a new generic proxy_capture_error()
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Sep 2018 15:43:26 +0000 (17:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Sep 2018 16:36:04 +0000 (18:36 +0200)
commit75fb65a51fb87dc5e491173488160ec70e07f20c
tree3fdbcd1aa66038176f8784b535d4c9f5b555b424
parent7ccdd8dad9a3c3ceb35d154254edda7203b98ce5
MINOR: proxy: add a new generic proxy_capture_error()

This function now captures an error regardless of its side and protocol.
The caller must pass a number of elements and may pass a protocol-specific
structure and a callback to display it. Later this function may deal with
more advanced allocation techniques to avoid allocating as many buffers
as proxies.
include/proto/proxy.h
src/proxy.c