Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-yamux
Commits
c4f881b4
Unverified
Commit
c4f881b4
authored
Jun 22, 2020
by
Steven Allen
Committed by
GitHub
Jun 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #31 from libp2p/fix/simplify-inflight-fix
fix: simplify inflight fix
parents
4e4020f2
4cae7dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
session.go
session.go
+1
-2
No files found.
session.go
View file @
c4f881b4
...
...
@@ -690,7 +690,6 @@ func (s *Session) incomingStream(id uint32) error {
// Backlog exceeded! RST the stream
s
.
logger
.
Printf
(
"[WARN] yamux: backlog exceeded, forcing connection reset"
)
delete
(
s
.
streams
,
id
)
delete
(
s
.
inflight
,
id
)
hdr
:=
encode
(
typeWindowUpdate
,
flagRST
,
id
,
0
)
return
s
.
sendMsg
(
hdr
,
nil
,
nil
)
}
...
...
@@ -707,9 +706,9 @@ func (s *Session) closeStream(id uint32) {
default
:
s
.
logger
.
Printf
(
"[ERR] yamux: SYN tracking out of sync"
)
}
delete
(
s
.
inflight
,
id
)
}
delete
(
s
.
streams
,
id
)
delete
(
s
.
inflight
,
id
)
s
.
streamLock
.
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