From c528583108414c2cc6aa725b833ccb578e562c3a Mon Sep 17 00:00:00 2001 From: Benjamin Wenger <ben@elixxir.ioo> Date: Fri, 5 Mar 2021 14:07:14 -0800 Subject: [PATCH] updated gateway connection parameters --- network/instance.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/network/instance.go b/network/instance.go index 2891bed0..c47db15a 100644 --- a/network/instance.go +++ b/network/instance.go @@ -520,7 +520,7 @@ func (i *Instance) GetLastRoundID() id.Round { } // Get the oldest round id -func (i *Instance) GetOldestRoundID() id.Round { +func (i *Instance) GetOldestRoundID() id.Round { return i.roundData.GetOldestRoundID() } @@ -610,6 +610,8 @@ func (i *Instance) updateConns(def *ndf.NetworkDefinition, isGateway, isNode boo } gwParams := connect.GetDefaultHostParams() gwParams.AuthEnabled = false + gwParams.MaxRetries = 3 + gwParams.EnableCoolOff = true _, err := i.comm.AddHost(gwid, addr, []byte(gateway.TlsCertificate), gwParams) if err != nil { return errors.WithMessagef(err, "Could not add gateway host %s", gwid) -- GitLab