jonyhy96 edited a comment on issue #257:
URL: 
https://github.com/apache/pulsar-client-go/issues/257#issuecomment-632443576


   @jiazhai Thanks for reply.
   > This behavior looks fine. It could avoid user to manually reconnect.
   
   I also like this auto reconnect feature but i think maybe we can give the 
ability of config this behavior to the user, so users can decide the max number 
of retry should the client make.
   
   I'm facing the problem that when i running a consumer inside a kubernetes 
pod,if network error happens or the pulsar broker is terminated, it will try to 
reconnect to the broker infinitely.
   This could be a waste of resources.If this behavior is configurable or there 
is some retry policy i can chose will help a lot.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to