wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
773 stars 126 forks source link

`channelManager` uses empty `amqp.Config` on reconnect #32

Closed jastBytes closed 3 years ago

jastBytes commented 3 years ago

I am facing an issue using mTLS with RabbitMQ and this library. When the connection goes down and the channelManager reconnects, it is using the config member, but in the func newChannelManager it is not set on the channelManager instance, so it is reconnecting using an empty amqp.Config lacking the CA and client certificate to connect with mTLS failing to validate the server's certificate.