From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: Re: [PATCH] IPVS: More reliable synchronization on connection close Date: Thu, 17 Jul 2008 12:47:22 +1000 Message-ID: <20080717024720.GB23699@verge.net.au> References: <20080716063519.GA5144@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Miller , Rumen Bogdanovski , Joseph Mack NA3T To: LVS Devel , Linux Netdev List Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]:38495 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758241AbYGQCrY (ORCPT ); Wed, 16 Jul 2008 22:47:24 -0400 Content-Disposition: inline In-Reply-To: <20080716063519.GA5144@verge.net.au> Sender: netdev-owner@vger.kernel.org List-ID: From: Rumen Bogdanovski This patch enhances the synchronization of the closing connections between the master and the backup director. It prevents the closed connections to expire with the 15 min timeout of the ESTABLISHED state on the backup and makes them expire as they would do on the master with much shorter timeouts. Cc: Joseph Mack NA3T Signed-off-by: Rumen G. Bogdanovski Acked-by: Simon Horman --- Hi Dave, please consider applying this. Changes: * Fixed typo in subject * Previous post was encoded as quoted-printable diff -Naur net-2.6_orig/net/ipv4/ipvs/ip_vs_core.c net-2.6/net/ipv4/ipvs/ip_vs_core.c --- net-2.6_orig/net/ipv4/ipvs/ip_vs_core.c 2008-07-15 11:23:44.000000000 +0300 +++ net-2.6/net/ipv4/ipvs/ip_vs_core.c 2008-07-15 11:27:31.000000000 +0300 @@ -993,7 +993,8 @@ == sysctl_ip_vs_sync_threshold[0])) || ((cp->protocol == IPPROTO_TCP) && (cp->old_state != cp->state) && ((cp->state == IP_VS_TCP_S_FIN_WAIT) || - (cp->state == IP_VS_TCP_S_CLOSE))))) + (cp->state == IP_VS_TCP_S_CLOSE_WAIT) || + (cp->state == IP_VS_TCP_S_TIME_WAIT))))) ip_vs_sync_conn(cp); cp->old_state = cp->state; -- Horms