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
2f7b04d4
Commit
2f7b04d4
authored
4 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
add more errors to hostPool.go
parent
7dd569c4
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
+4
-2
4 additions, 2 deletions
network/gateway/hostPool.go
with
4 additions
and
2 deletions
network/gateway/hostPool.go
+
4
−
2
View file @
2f7b04d4
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
// LICENSE file //
// LICENSE file //
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Handles functionality related to providing Gateway connect.Host objects
//
Package gateway
Handles functionality related to providing Gateway connect.Host objects
// for message sending to the rest of the client repo
// for message sending to the rest of the client repo
// Used to minimize # of open connections on mobile clients
// Used to minimize # of open connections on mobile clients
package
gateway
package
gateway
import
(
import
(
...
@@ -30,7 +31,8 @@ import (
...
@@ -30,7 +31,8 @@ import (
// List of errors that initiate a Host replacement
// List of errors that initiate a Host replacement
var
errorsList
=
[]
string
{
"context deadline exceeded"
,
"connection refused"
,
"host disconnected"
,
var
errorsList
=
[]
string
{
"context deadline exceeded"
,
"connection refused"
,
"host disconnected"
,
"transport is closing"
,
"all SubConns are in TransientFailure"
,
ndf
.
NO_NDF
}
"transport is closing"
,
"all SubConns are in TransientFailure"
,
"Last try to connect"
,
ndf
.
NO_NDF
,
"Host is in cool down"
}
// HostManager Interface allowing storage and retrieval of Host objects
// HostManager Interface allowing storage and retrieval of Host objects
type
HostManager
interface
{
type
HostManager
interface
{
...
...
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