]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: make tcp-check perform multiple send() at once
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 15:54:31 +0000 (16:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 16:13:50 +0000 (17:13 +0100)
commitfbe0edf0576668dab66eccbf248a1b4efeb76dc8
tree419b010dceb20d35a017782802d2fd8696dfa54f
parent98aec9ff47ad33748cf5c76cd071511cbcf509c6
MEDIUM: checks: make tcp-check perform multiple send() at once

Now instead of seeing many send() calls from multiple "tcp-check send"
rules, we fill the output buffer and try to send all only when we're
not in a send state or when the output buffer is too small for sending
the next message.

This results in a lot less syscalls and avoids filling the network with
many small packets. It will also improve the behaviour of some bogus
servers which expect a complete request in the first packet.
src/checks.c