]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: Fix a peer stick-tables synchronization issue.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 12 Oct 2016 15:30:30 +0000 (17:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Oct 2016 17:44:35 +0000 (19:44 +0200)
commit523cc9e8587aef8449dead14b7256ebeac9f3e9c
treeb1059c5bf59c29c2ff53f7e746a09b021f5b6798
parentad9a7e9770e673a70fb56ab95be18bf88666d92a
MEDIUM: peers: Fix a peer stick-tables synchronization issue.

During the stick-table teaching process which occurs at reloading/restart time,
expiration dates of stick-tables entries were not synchronized between peers.

This patch adds two new stick-table messages to provide such a synchronization feature.

As these new messages are not supported by older haproxy peers protocol versions,
this patch increments peers protol version, from 2.0 to 2.1, to help in detecting/supporting
such older peers protocol implementations so that new versions might still be able
to transparently communicate with a newer one.

[wt: technically speaking it would be nice to have this backported into 1.6
 as some people who reload often are affected by this design limitation, but
 it's not a totally transparent change that may make certain users feel
 reluctant to upgrade older versions. Let's let it cook in 1.7 first and
 decide later]
include/proto/stick_table.h
src/peers.c
src/stick_table.c