Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queue_delete drops connection instead closing channel #159

Closed
migotom opened this issue Oct 10, 2018 · 1 comment
Closed

queue_delete drops connection instead closing channel #159

migotom opened this issue Oct 10, 2018 · 1 comment

Comments

@migotom
Copy link

migotom commented Oct 10, 2018

Method queue_delete drops whole connection if fails to delete queue (eg. consumer connected) instead closing channel as described in module spec (RabbitMQ throws channel exception ).

Lib throws error while trying to reopen channel:

AMQP socket not connected at amqp_queue_delete_issue.pl line 29

Attached code used to recreate issue: amqp_queue_delete_issue.pl.txt

@manchicken
Copy link
Contributor

Many times the issue isn't so much that the socket was disconnected as it was that you tried to make an RPC call when the connection was in an error state. I've been trying to think through this problem for a while (more than a year, off and on), but there really aren't any good ways I've found so far to handle this limitation of the C library. This same issue is also what is getting in the way of upgrading the C library in general. I've been working on a refactor to use more of the C code instead of the copy-and-paste code which exists in the module now, but it's just taking a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants