Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
cb7218fa
Unverified
Commit
cb7218fa
authored
Jun 20, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jun 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #79101 from andrewsykim/automated-cherry-pick-of-#78999-origin-release-1.14
Automated cherry pick of #78999: ipvs: fix string check for IPVS protocol during graceful
parents
50987195
a252fb93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
graceful_termination.go
pkg/proxy/ipvs/graceful_termination.go
+2
-1
No files found.
pkg/proxy/ipvs/graceful_termination.go
View file @
cb7218fa
...
...
@@ -18,6 +18,7 @@ package ipvs
import
(
"fmt"
"strings"
"sync"
"time"
...
...
@@ -167,7 +168,7 @@ func (m *GracefulTerminationManager) deleteRsFunc(rsToDelete *listItem) (bool, e
// For UDP traffic, no graceful termination, we immediately delete the RS
// (existing connections will be deleted on the next packet because sysctlExpireNoDestConn=1)
// For other protocols, don't delete until all connections have expired)
if
rsToDelete
.
VirtualServer
.
Protocol
!=
"udp
"
&&
rs
.
ActiveConn
+
rs
.
InactiveConn
!=
0
{
if
strings
.
ToUpper
(
rsToDelete
.
VirtualServer
.
Protocol
)
!=
"UDP
"
&&
rs
.
ActiveConn
+
rs
.
InactiveConn
!=
0
{
klog
.
Infof
(
"Not deleting, RS %v: %v ActiveConn, %v InactiveConn"
,
rsToDelete
.
String
(),
rs
.
ActiveConn
,
rs
.
InactiveConn
)
return
false
,
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment