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
dms3
go-dms3
Commits
ba977813
Commit
ba977813
authored
Apr 27, 2015
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only warn about io.EOF from mux.ReaderHeaders (fixes #1143)
parent
29c6a53e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
p2p/host/basic/basic_host.go
p2p/host/basic/basic_host.go
+7
-1
No files found.
p2p/host/basic/basic_host.go
View file @
ba977813
package
basichost
import
(
"io"
ma
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
goprocess
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
...
...
@@ -95,7 +97,11 @@ func (h *BasicHost) newConnHandler(c inet.Conn) {
func
(
h
*
BasicHost
)
newStreamHandler
(
s
inet
.
Stream
)
{
protoID
,
handle
,
err
:=
h
.
Mux
()
.
ReadHeader
(
s
)
if
err
!=
nil
{
log
.
Error
(
"protocol mux failed: %s"
,
err
)
if
err
==
io
.
EOF
{
log
.
Warningf
(
"protocol EOF: %s"
,
s
.
Conn
()
.
RemotePeer
())
}
else
{
log
.
Errorf
(
"protocol mux failed: %s"
,
err
)
}
return
}
...
...
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