sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

NATS reconnect does not seem to work when connecting to a cluster of NATS servers.

Open n3wscott opened this issue 5 years ago • 4 comments
trafficstars

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.

n3wscott avatar Aug 19 '20 14:08 n3wscott

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

wallyqs avatar Aug 19 '20 20:08 wallyqs

Ok thanks! We will check that out.

n3wscott avatar Aug 27 '20 20:08 n3wscott

I think I found the problem, it seems the client does not communicate well with the nats lib if you use golang 1.13

n3wscott avatar Sep 28 '20 16:09 n3wscott

Has this been resolved?

bruth avatar Oct 25 '22 18:10 bruth