Skip to content
GitLab
Menu
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
8a2f08f3
Commit
8a2f08f3
authored
Jan 26, 2015
by
Juan Batiz-Benet
Browse files
p2p/net/conn: reuse timeout is real error
should be returning false.
parent
3b5d1164
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/conn/dial.go
View file @
8a2f08f3
...
...
@@ -152,7 +152,7 @@ func reuseErrShouldRetry(err error) bool {
// if it's a network timeout error, it's a legitimate failure.
if
nerr
,
ok
:=
err
.
(
net
.
Error
);
ok
&&
nerr
.
Timeout
()
{
return
tru
e
return
fals
e
}
errno
,
ok
:=
err
.
(
syscall
.
Errno
)
...
...
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