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
5e50302a
Commit
5e50302a
authored
Mar 11, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22804 from ncdc/bump-spdystream
Auto commit by PR queue bot
parents
1f98ba99
36243b80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Godeps.json
Godeps/Godeps.json
+1
-1
stream.go
Godeps/_workspace/src/github.com/docker/spdystream/stream.go
+5
-4
No files found.
Godeps/Godeps.json
View file @
5e50302a
...
@@ -399,7 +399,7 @@
...
@@ -399,7 +399,7 @@
},
},
{
{
"ImportPath"
:
"github.com/docker/spdystream"
,
"ImportPath"
:
"github.com/docker/spdystream"
,
"Rev"
:
"
106e140db2cb50923efe088bf2906b2ee5a45fec
"
"Rev"
:
"
449fdfce4d962303d702fec724ef0ad181c92528
"
},
},
{
{
"ImportPath"
:
"github.com/elazarl/go-bindata-assetfs"
,
"ImportPath"
:
"github.com/elazarl/go-bindata-assetfs"
,
...
...
Godeps/_workspace/src/github.com/docker/spdystream/stream.go
View file @
5e50302a
...
@@ -170,6 +170,11 @@ func (s *Stream) Reset() error {
...
@@ -170,6 +170,11 @@ func (s *Stream) Reset() error {
}
}
func
(
s
*
Stream
)
resetStream
()
error
{
func
(
s
*
Stream
)
resetStream
()
error
{
// Always call closeRemoteChannels, even if s.finished is already true.
// This makes it so that stream.Close() followed by stream.Reset() allows
// stream.Read() to unblock.
s
.
closeRemoteChannels
()
s
.
finishLock
.
Lock
()
s
.
finishLock
.
Lock
()
if
s
.
finished
{
if
s
.
finished
{
s
.
finishLock
.
Unlock
()
s
.
finishLock
.
Unlock
()
...
@@ -178,8 +183,6 @@ func (s *Stream) resetStream() error {
...
@@ -178,8 +183,6 @@ func (s *Stream) resetStream() error {
s
.
finished
=
true
s
.
finished
=
true
s
.
finishLock
.
Unlock
()
s
.
finishLock
.
Unlock
()
s
.
closeRemoteChannels
()
resetFrame
:=
&
spdy
.
RstStreamFrame
{
resetFrame
:=
&
spdy
.
RstStreamFrame
{
StreamId
:
s
.
streamId
,
StreamId
:
s
.
streamId
,
Status
:
spdy
.
Cancel
,
Status
:
spdy
.
Cancel
,
...
@@ -320,7 +323,5 @@ func (s *Stream) closeRemoteChannels() {
...
@@ -320,7 +323,5 @@ func (s *Stream) closeRemoteChannels() {
case
<-
s
.
closeChan
:
case
<-
s
.
closeChan
:
default
:
default
:
close
(
s
.
closeChan
)
close
(
s
.
closeChan
)
s
.
dataLock
.
Lock
()
defer
s
.
dataLock
.
Unlock
()
}
}
}
}
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