We are using NServiceBus with RabbitMQ transport:
NSB 6.4.0 NSB.RabbitMQ 4.4.0 RabbitMQ 3.6.10
Endpoint is configured as
When RabbitMQ server raises the memory alarm and blocks all connections from sending/publishing messages call to the NSB EndPoint.Send method hangs without any error or log message.
I cannot find any reference about this behavior in the NSB documentation or here. Ideally, we want to cancel the current send operation after some timeout and prevent future sends until connection is unblocked.
Do we have any way to define timeout for send operation via NSB settings or Cancel the pending send operation/Task?
Is it possible to subscribe to the blocked/unblocked connection events (https://www.rabbitmq.com/connection-blocked.html) provided by underlying RabbitMQ.Client .NET library?
Thank you in advance