Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
f0eba35c
Unverified
Commit
f0eba35c
authored
6 years ago
by
Steven Allen
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #388 from libp2p/fix/id-reset
reset when we fail in identify
parents
6c88b44a
2e132450
master
2018-Q4-OKR
fix/473
fix/no-custom-field
multistream-ping
punching
v6.0.23
v6.0.22
v6.0.21
v6.0.20
v6.0.19
v6.0.18
v6.0.17
v6.0.16
v6.0.15
v6.0.14
v6.0.13
v6.0.12
v6.0.11
v6.0.10
v6.0.9
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p2p/protocol/identify/id.go
+2
-2
p2p/protocol/identify/id.go
with
2 additions
and
2 deletions
+2
-2
p2p/protocol/identify/id.go
View file @
f0eba35c
...
...
@@ -92,13 +92,13 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
c
.
Close
()
return
}
defer
inet
.
FullClose
(
s
)
s
.
SetProtocol
(
ID
)
// ok give the response to our handler.
if
err
:=
msmux
.
SelectProtoOrFail
(
ID
,
s
);
err
!=
nil
{
log
.
Event
(
context
.
TODO
(),
"IdentifyOpenFailed"
,
c
.
RemotePeer
(),
logging
.
Metadata
{
"error"
:
err
})
s
.
Reset
()
return
}
...
...
@@ -111,8 +111,8 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
if
!
found
{
log
.
Errorf
(
"IdentifyConn failed to find channel (programmer error) for %s"
,
c
)
return
}
inet
.
FullClose
(
s
)
}
func
(
ids
*
IDService
)
requestHandler
(
s
inet
.
Stream
)
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help