]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] introduce structures required to support Linux kernel splicing
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 20:56:21 +0000 (21:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 20:56:21 +0000 (21:56 +0100)
commit259de1b702b93829d0b7229a234008be5b71458d
tree4df703b68b0d77952ac18f09a25e30fed312b4a7
parent66aa61f76b7b3c7d8a5f4dbab8b0ca626d5b963e
[MINOR] introduce structures required to support Linux kernel splicing

When CONFIG_HAP_LINUX_SPLICE is defined, the buffer structure will be
slightly enlarged to support information needed for kernel splicing
on Linux.

A first attempt consisted in putting this information into the stream
interface, but in the long term, it appeared really awkward. This
version puts the information into the buffer. The platform-dependant
part is conditionally added and will only enlarge the buffers when
compiled in.

One new flag has also been added to the buffers: BF_KERN_SPLICING.
It indicates that the application considers it is appropriate to
use splicing to forward remaining data.
include/proto/buffers.h
include/types/buffers.h
src/session.c