]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] buffer: make buffer_feed* support writing non-contiguous chunks
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 13:28:21 +0000 (15:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 15:48:57 +0000 (17:48 +0200)
commit591fedc2c3eff850e53dfafd3b0494a3d2264172
tree4d132e2f7d53b44f1050b9d0e7748f480e2b4439
parent3488e2548f818e5402cfe1b67de41888ef49774c
[MEDIUM] buffer: make buffer_feed* support writing non-contiguous chunks

The buffer_feed* functions that are used to send data to buffers did only
support sending contiguous chunks while they're relying on memcpy(). This
patch improves on this by making them able to write in two chunks if needed.
Thus, the buffer_almost_full() function has been improved to really consider
the remaining space and not just what can be written at once.
include/proto/buffers.h
src/buffers.c