]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: tcp-check: do not poll when there's nothing to send
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 11:47:19 +0000 (12:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 11:47:19 +0000 (12:47 +0100)
commita970c283cc9f7fac25c6c10763730a0a6e59c677
tree018ddd06dacf86cf72cf0ade446ebdf2bf16448e
parent5ecb77f4c76fd240d8f5443f12151268bafe1b0a
BUG/MEDIUM: checks: tcp-check: do not poll when there's nothing to send

A config with just a "tcp-check expect string XXX" loops at 100% CPU
because the connect() wakes the function and there's nothing to send,
but it does not disable the polling.

Rearrange the polling setup to fix this. This was just caused by latest
commit, no backport is needed.
src/checks.c