sdk-go
sdk-go copied to clipboard
NATS reconnect does not seem to work when connecting to a cluster of NATS servers.
Local reconnect works but as soon as we try to connect the cloudevents sender to a cluster of servers, the reconnect logic does not reconnect.
The NATS Go client has a few event handlers to be able to investigate how the reconnection logic is working. Maybe those could be added to the sdk so that they get logged? https://pkg.go.dev/github.com/nats-io/nats.go?tab=doc#Conn.SetDiscoveredServersHandler
Ok thanks! We will check that out.
I think I found the problem, it seems the client does not communicate well with the nats lib if you use golang 1.13
Has this been resolved?