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
015b13ff
Commit
015b13ff
authored
Apr 09, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6632 from ncdc/fix-flakey-exec-deadlock
bump(github.com/docker/spdystream):99515db39d3dad9607e0293f18152f3d59da7...
parents
c72dc15e
82afb7ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
Godeps.json
Godeps/Godeps.json
+1
-1
connection.go
..._workspace/src/github.com/docker/spdystream/connection.go
+15
-0
No files found.
Godeps/Godeps.json
View file @
015b13ff
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
},
},
{
{
"ImportPath"
:
"github.com/docker/spdystream"
,
"ImportPath"
:
"github.com/docker/spdystream"
,
"Rev"
:
"
e731c8f9f19ffd7e51a469a2de1580c1dfbb4fae
"
"Rev"
:
"
99515db39d3dad9607e0293f18152f3d59da76dc
"
},
},
{
{
"ImportPath"
:
"github.com/elazarl/go-bindata-assetfs"
,
"ImportPath"
:
"github.com/elazarl/go-bindata-assetfs"
,
...
...
Godeps/_workspace/src/github.com/docker/spdystream/connection.go
View file @
015b13ff
...
@@ -89,10 +89,25 @@ Loop:
...
@@ -89,10 +89,25 @@ Loop:
if
timer
!=
nil
{
if
timer
!=
nil
{
timer
.
Stop
()
timer
.
Stop
()
}
}
// Start a goroutine to drain resetChan. This is needed because we've seen
// some unit tests with large numbers of goroutines get into a situation
// where resetChan fills up, at least 1 call to Write() is still trying to
// send to resetChan, the connection gets closed, and this case statement
// attempts to grab the write lock that Write() already has, causing a
// deadlock.
//
// See https://github.com/docker/spdystream/issues/49 for more details.
go
func
()
{
for
_
=
range
resetChan
{
}
}()
i
.
writeLock
.
Lock
()
i
.
writeLock
.
Lock
()
close
(
resetChan
)
close
(
resetChan
)
i
.
resetChan
=
nil
i
.
resetChan
=
nil
i
.
writeLock
.
Unlock
()
i
.
writeLock
.
Unlock
()
break
Loop
break
Loop
}
}
}
}
...
...
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