]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sink: add support for ring buffers
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Aug 2019 13:47:49 +0000 (15:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 15:14:19 +0000 (17:14 +0200)
commit4ed23ca0e757f1e4b33fbd3357e45230fbb61f9f
treef54641316988b45e216b47e6fcc2a9476efa2e8e
parent072931cdcbe29e4b4abe525831641cd44a0481c3
MINOR: sink: add support for ring buffers

This now provides sink_new_buf() which allocates a ring buffer. One such
ring ("buf0") of 1 MB is created already, and may be used by sink_write().
The sink's creation should probably be moved somewhere else later.
include/types/sink.h
src/sink.c