bunny icon indicating copy to clipboard operation
bunny copied to clipboard

All channels have to be closed by now.

Open ddzobov opened this issue 3 years ago • 5 comments

Hello Sometimes i’m getting LogicException “ All channels have to be closed by now.” in test environment.

Can some one explain me, why i can get this error?

ddzobov avatar Feb 04 '21 23:02 ddzobov

That error occurs when there are still open channels when performing a disconnect, something that shouldn't happen

WyriHaximus avatar Feb 05 '21 08:02 WyriHaximus

How to prevent getting this error?

ddzobov avatar Feb 25 '21 18:02 ddzobov

So to get a more complete picture: Are you able to connect and produce or consume messages before that error occurs?

Because if you're not, that is probably the root cause of your issue.

WyriHaximus avatar Feb 25 '21 20:02 WyriHaximus

Yes, app with this lib working together with swoole (reusing rabbitmq connect between requests). In production i have no problems because there is many in-out messages. I’m catching this error at test environment by running daily tests, so this error occurs after some idle about 3-4h.

ddzobov avatar Feb 25 '21 20:02 ddzobov

Sooo do you share swooles event loop (through an adapter) with bunny? If not, that's highly likely the reason, as the existing connection will simply timeout and close.

WyriHaximus avatar Mar 07 '21 14:03 WyriHaximus