From 97841f609e112ed9cd94c6d1655701d6cf7b524e Mon Sep 17 00:00:00 2001 From: Aaron U'Ren Date: Fri, 10 Jul 2020 00:52:24 -0500 Subject: [PATCH] fix(nsc): update IPVS svc when timeout changes fixes #910 --- pkg/controllers/proxy/network_services_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controllers/proxy/network_services_controller.go b/pkg/controllers/proxy/network_services_controller.go index ebddb13198..da1a3012cc 100644 --- a/pkg/controllers/proxy/network_services_controller.go +++ b/pkg/controllers/proxy/network_services_controller.go @@ -1611,7 +1611,8 @@ func (ln *linuxNetworking) ipvsAddService(svcs []*ipvs.Service, vip net.IP, prot var err error for _, svc := range svcs { if vip.Equal(svc.Address) && protocol == svc.Protocol && port == svc.Port { - if (persistent && (svc.Flags&0x0001) == 0) || (!persistent && (svc.Flags&0x0001) != 0) { + if (persistent && (svc.Flags&0x0001) == 0) || (!persistent && (svc.Flags&0x0001) != 0) || + svc.Timeout != uint32(persistentTimeout) { ipvsSetPersistence(svc, persistent, persistentTimeout) if changedIpvsSchedFlags(svc, flags) {