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
4a44df3f
Unverified
Commit
4a44df3f
authored
Jan 24, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73277 from smarterclayton/ignore_goaway
Add the http2 GOAWAY error to IsProbableEOF for ignoring in watch
parents
5fc286fb
640caeb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
http.go
staging/src/k8s.io/apimachinery/pkg/util/net/http.go
+6
-3
No files found.
staging/src/k8s.io/apimachinery/pkg/util/net/http.go
View file @
4a44df3f
...
@@ -68,14 +68,17 @@ func IsProbableEOF(err error) bool {
...
@@ -68,14 +68,17 @@ func IsProbableEOF(err error) bool {
if
uerr
,
ok
:=
err
.
(
*
url
.
Error
);
ok
{
if
uerr
,
ok
:=
err
.
(
*
url
.
Error
);
ok
{
err
=
uerr
.
Err
err
=
uerr
.
Err
}
}
msg
:=
err
.
Error
()
switch
{
switch
{
case
err
==
io
.
EOF
:
case
err
==
io
.
EOF
:
return
true
return
true
case
err
.
Error
()
==
"http: can't write HTTP request on broken connection"
:
case
msg
==
"http: can't write HTTP request on broken connection"
:
return
true
return
true
case
strings
.
Contains
(
err
.
Error
(),
"connection reset by peer
"
)
:
case
strings
.
Contains
(
msg
,
"http2: server sent GOAWAY and closed the connection
"
)
:
return
true
return
true
case
strings
.
Contains
(
strings
.
ToLower
(
err
.
Error
()),
"use of closed network connection"
)
:
case
strings
.
Contains
(
msg
,
"connection reset by peer"
)
:
return
true
case
strings
.
Contains
(
strings
.
ToLower
(
msg
),
"use of closed network connection"
)
:
return
true
return
true
}
}
return
false
return
false
...
...
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