]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: logs: buffer targets now rely on new sink_write
authorEmeric Brun <ebrun@haproxy.com>
Wed, 6 May 2020 15:23:59 +0000 (17:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 May 2020 09:04:11 +0000 (11:04 +0200)
commite709e1e7771bdaf1cfa6356ae448e75e614532b1
tree8b568e34749b95d6790333a6cfe440e8ee51cd4c
parentbd163817edd3f698ff04441d7eda364dde1a013f
MEDIUM: logs: buffer targets now rely on new sink_write

Before this path, they rely directly on ring_write bypassing
a part of the sink API.

Now the maxlen parameter of the log will apply only on the text
message part (and not the header, for this you woud prefer
to use the maxlen parameter on the sink/ring).

sink_write prototype was also reviewed to return the number of Bytes
written to be compliant with the other write functions.
include/proto/sink.h
include/types/log.h
src/log.c