]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: fix synchronization on connection close
authorXiaotian Feng <dfeng@redhat.com>
Mon, 14 Dec 2009 15:38:21 +0000 (16:38 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Dec 2009 15:38:21 +0000 (16:38 +0100)
commita619a52bbd1f67fb2530dc7352f5d36993e3115a
tree2526c6e877437a0949dd4707f5ae1b6d398a9f5d
parent42fa6823c3479148b68d469af141a9d746830001
ipvs: fix synchronization on connection close

commit 44832d5 makes slaves expire as they would do on the master
with much shorter timeouts. But it introduces another problem:
When we close a connection, on master server the connection became
CLOSE_WAIT/TIME_WAIT, it was synced to slaves, but if master is
finished within it's timeouts (CLOSE), it will not be synced to
slaves. Then slaves will be kept on CLOSE_WAIT/TIME_WAIT until
timeout reaches. Thus we should also sync with CLOSE.

Cc: Wensong Zhang <wensong@linux-vs.org>
Cc: Simon Horman <horms@verge.net.au>
Cc: Julian Anastasov <ja@ssi.bg>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/ipvs/ip_vs_core.c