Open Ja7ad opened 10 months ago
I struggled with same issue in other programming languages specifically because RabbitMQ try to close dead TCP connection. IIRC tcp timeout or keepalive is set to 30 sec by default in most cases so you must have a heartbeat mechanism to keep connection alive.
I didn't find a time to read your code but I assume
you can try to reduce sleep delay and/or reduce number of live connection in your pool to less than 5 then all your connection will be use in roundrobin algorithm in less than 30 sec.
I hope this explanation can help you to find the reason.
I am experiencing an unknown issue with the close channel during the reconnection of the publisher.
The reconnection channel manager does not have issues with the consumer and continues to run in the background to return to a normal state, but it encounters issues with the publisher during the close on reconnection.