IPVS: More reliable subchronization on connection close.
Subsystems (3)
Simon Horman
maintainerPATCH 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
@@ -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;
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.
Cc Joseph Mack NA3T <[email protected]>Signed-off-by Rumen G. Bogdanovski <[email protected]>Acked-by Simon Horman <[email protected]>---
Hi Dave,
please consider applying this.
diff -Naur
net-2.6_orig/net/ipv4/ipvs/ip_vs_core.cnet-2.6/net/ipv4/ipvs/ip_vs_core.cnet/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;
Re: [PATCH] IPVS: More reliable synchronization on connection close
In reply to Simon HormanFrom: 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
@@ -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
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.
Signed-off-by Rumen G. Bogdanovski <[email protected]>Acked-by Simon Horman <[email protected]>
Applied, thanks.