commit | 591fedc2c3eff850e53dfafd3b0494a3d2264172 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Aug 10 15:28:21 2010 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Aug 10 17:48:57 2010 +0200 |
tree | 4d132e2f7d53b44f1050b9d0e7748f480e2b4439 | |
parent | 3488e2548f818e5402cfe1b67de41888ef49774c [diff] |
[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.