Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
a63c881b
Commit
a63c881b
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix reporting issue in follower
parent
459e7a2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
network/gateway/hostPool.go
+3
-2
3 additions, 2 deletions
network/gateway/hostPool.go
with
3 additions
and
2 deletions
network/gateway/hostPool.go
+
3
−
2
View file @
a63c881b
...
...
@@ -22,6 +22,7 @@ import (
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/ndf"
"golang.org/x/net/context"
"io"
"math"
"strings"
...
...
@@ -30,7 +31,7 @@ import (
)
// List of errors that initiate a Host replacement
var
errorsList
=
[]
string
{
"
context
d
eadline
e
xceeded
"
,
"connection refused"
,
"host disconnected"
,
var
errorsList
=
[]
string
{
context
.
D
eadline
E
xceeded
.
Error
()
,
"connection refused"
,
"host disconnected"
,
"transport is closing"
,
"all SubConns are in TransientFailure"
,
"Last try to connect"
,
ndf
.
NO_NDF
,
"Host is in cool down"
}
...
...
@@ -80,7 +81,7 @@ func DefaultPoolParams() PoolParams {
p
.
HostParams
.
EnableCoolOff
=
true
p
.
HostParams
.
NumSendsBeforeCoolOff
=
1
p
.
HostParams
.
CoolOffTimeout
=
5
*
time
.
Minute
p
.
HostParams
.
SendTimeout
=
3500
*
time
.
Millisecond
p
.
HostParams
.
SendTimeout
=
3500
*
time
.
Millisecond
return
p
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment