]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] splice: set the capability on each stream_interface
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Jun 2009 21:10:19 +0000 (23:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Jun 2009 21:10:19 +0000 (23:10 +0200)
commitdc340a900d9d2e7258888ade8192796c36a8a389
treebe4d381231ae475300ee2e2f9097544d49cc108b
parent1a52dbda597768727273b7cea688c714ffd48b93
[MEDIUM] splice: set the capability on each stream_interface

The splice code did not consider compatibility between both ends
of the connection. Now we set different capabilities on each
stream interface, depending on what the protocol can splice to/from.
Right now, only TCP is supported. Thanks to this, we're now able to
automatically detect when splice() is not implemented and automatically
disable it on one end instead of reporting errors to the upper layer.
include/types/stream_interface.h
src/backend.c
src/client.c
src/session.c
src/stream_sock.c