]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: Wrong peer task expiration handling during synchronization processing.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 29 May 2017 11:47:16 +0000 (13:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Jun 2017 09:19:50 +0000 (11:19 +0200)
commit5d6e5f86c51cef6c22c6aeacc6b0e528f8fe58e9
tree2054c4845a8f8872fafaf7135e5848d7b7b1193c
parent8a361b594ea38fb1f89f0b00f095ece0c8613d10
BUG/MINOR: Wrong peer task expiration handling during synchronization processing.

When a peer task has sent a synchronization request to remote peers
its next expiration date was updated based on a resynchronization timeout
value which itself may have already expired leading the underlying
poller to wait for 0ms during a fraction of second (consuming high CPU
resources).

With this patch we update such peer task expiration dates only if
the resynchronization timeout is not already expired.

Thanks to Patrick Hemmer who reported an issue with nice traces
which helped in finding this one.

This patch may be backported to 1.7 and 1.6.
src/peers.c