]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: splice: detect shutdowns and avoid splice() == 0
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2013 15:38:26 +0000 (16:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2013 15:39:51 +0000 (16:39 +0100)
commitbaf2a500a185fcaedede4510281be5d16a8dddde
tree4900994626a0377c4390356f63af8d1cec54f791
parent1c07b0755df77d5e9c867694c73c9338150a746a
OPTIM: splice: detect shutdowns and avoid splice() == 0

Since last commit introducing EPOLLRDHUP, the splicing code is able to
detect an incoming shutdown without calling splice() == 0. This avoids
one useless syscall.
src/raw_sock.c