Closed ticmaisdev closed 9 months ago
Hi @ticmaidev
This is a consequence / limitation of the Node.js architecture. If you have a long running synchronous task, or you flood the event loop with a high number of asynchronous ones, new tasks may not be executed for quite some time.
In the case of amqplib, this means that it may neither be able to send nor receive heartbeats, and may either close the connection, or have it closed by the broker.
You options are to
THANK YOU
I've reported this issue on NestJS, so here's the link for reference (includes minimum reproduction code):
https://github.com/nestjs/nest/issues/13040