Skip to content
Snippets Groups Projects
Commit c8e9b996 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

added max retries to connecting to client registration

parent 88998f20
No related branches found
No related tags found
1 merge request!23Release
......@@ -35,6 +35,7 @@ func Init(comms *client.Comms, def *ndf.NetworkDefinition) (*Registration, error
hParam.AuthEnabled = false
// Client will not send KeepAlive packets
hParam.KaClientOpts.Time = time.Duration(math.MaxInt64)
hParam.MaxRetries = 3
perm.host, err = comms.AddHost(&id.ClientRegistration, def.Registration.ClientRegistrationAddress,
[]byte(def.Registration.TlsCertificate), hParam)
......
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