]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: sink: add a new dpapi ring buffer
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Apr 2025 11:56:12 +0000 (13:56 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Apr 2025 11:56:12 +0000 (13:56 +0200)
Add a 1MB ring buffer called "dpapi" for communication with the
dataplane API. It would first be used to transmit ACME informations to
the dataplane API but could be used for more.

src/sink.c

index 5f65222d72137808e4ef888684c06e77ef747965..ed7195981d799b14e4729bfeda417ce6cb8cfa35 100644 (file)
@@ -1411,6 +1411,7 @@ static void sink_init()
        sink_new_fd("stdout", "standard output (fd#1)", LOG_FORMAT_RAW, 1);
        sink_new_fd("stderr", "standard output (fd#2)", LOG_FORMAT_RAW, 2);
        sink_new_buf("buf0",  "in-memory ring buffer", LOG_FORMAT_TIMED, 1048576);
+       sink_new_buf("dpapi",  "DPAPI ring buffer", LOG_FORMAT_TIMED, 1048576);
 }
 
 static int sink_postcheck()