Skip to contentSkip to conversation

IPVS: More reliable subchronization on connection close.

PATCH Applied Simon Horman 3 participants 4 messages Jul 16, 2008 – Jul 17, 2008

Subsystems (3)
lore
Share & tools
lore

Simon Horman

author maintainer
#0 lore raw

PATCH 1/1 IPVS: More reliable subchronization on connection close.

From: Rumen Bogdanovski <[email protected]>

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.

---

Hi Dave,

please consider applying this.

net/ipv4/ipvs/ip_vs_core.c +2 -1
diff -Naur net-2.6_orig/net/ipv4/ipvs/ip_vs_core.c net-2.6/net/ipv4/ipvs/ip_vs_core.c
@@ -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;
 
#1 lore raw

Would you please change the Subject to (a typo fix):
[PATCH] IPVS: More reliable synchronization on connection close.

Quoted 31 lines · Simon Horman

From: Rumen Bogdanovski <[email protected]>

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.

---

Hi Dave,

please consider applying this.

diff -Naur net-2.6_orig/net/ipv4/ipvs/ip_vs_core.c net-2.6/net/ipv4/ipvs/ip_vs_core.c

net/ipv4/ipvs/ip_vs_core.c +2 -1
@@ -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;
 
author maintainer Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] IPVS: More reliable synchronization on connection close

In reply to Simon Horman

From: Rumen Bogdanovski <[email protected]>

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.

---

Hi Dave,

please consider applying this.

Changes:
* Fixed typo in subject
* Previous post was encoded as quoted-printable

net/ipv4/ipvs/ip_vs_core.c +2 -1
diff -Naur net-2.6_orig/net/ipv4/ipvs/ip_vs_core.c net-2.6/net/ipv4/ipvs/ip_vs_core.c
@@ -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;
 
Signature · 1 line
Horms
maintainer Applied
#3 lore raw

Re: [PATCH] IPVS: More reliable synchronization on connection close

From: Simon Horman <[email protected]>
Date: Thu, 17 Jul 2008 12:47:22 +1000

Quoted 8 lines

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.

Applied, thanks.