Skip to content
Snippets Groups Projects
Commit 2f7b04d4 authored by Jake Taylor's avatar Jake Taylor
Browse files

add more errors to hostPool.go

parent 7dd569c4
No related branches found
No related tags found
No related merge requests found
...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment