commit | b034b2598ddea1e852df1f1de8672e285c8c2f6b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Dec 08 18:14:53 2014 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 24 23:47:33 2014 +0100 |
tree | 6db3c9f3db352dfaf31cabcce7c2ea48f1b25aae | |
parent | 33cb0653480f888e30e9dccd189a7f8b3fd64eb2 [diff] |
MEDIUM: channel: implement a zero-copy buffer transfer bi_swpbuf() swaps the buffer passed in argument with the one attached to the channel, but only if this last one is empty. The idea is to avoid a copy when buffers can simply be swapped.