Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

RabbitMQ channel.CallbackException causes blocks and causes deadlock when disposing channel #1052

Closed
@david-ernstsson-stratsys

Description

Hi, after changing to using AsyncEventingBasicConsumer in #987 deadlock occurs when unhandled exception

If an unhandled exception occurs in EventBusRabbitMQ.Consumer_Received and channel.CallbackException is invoked then with current implementation _consumerChannel.Dispose(); blocks and causes deadlock

Thoughts on this? I've failed to find a fix for this and instead choosing to not do anything when _consumerChannel.IsOpen

Links with same problem:
https://groups.google.com/forum/#!topic/rabbitmq-users/N76hwS7BEpg
rabbitmq/rabbitmq-dotnet-client#341

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions