]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: buffer: use b_alloc() to allocate and initialize a buffer
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Nov 2014 10:30:16 +0000 (11:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2014 22:47:32 +0000 (23:47 +0100)
commite583ea583a5e028c25130e25c2d259be3e4fe148
tree7be50adb5bcc7fd90b809fa51aecfe5444ce2fa7
parent474cf54a97ca19fa0f5a1de9489330f348836531
MEDIUM: buffer: use b_alloc() to allocate and initialize a buffer

b_alloc() now allocates a buffer and initializes it to the size specified
in the pool minus the size of the struct buffer itself. This ensures that
callers do not need to care about buffer details anymore. Also this never
applies memory poisonning, which is slow and useless on buffers.
include/common/buffer.h
src/compression.c
src/peers.c
src/proto_http.c
src/session.c