You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using logic similar to that mentioned in #159 to recover connections, and it has worked great except for a recent case. The logic is:
model.ModelShutdown += (sender, args) =>
{
if (args.Initiator == ShutdownInitiator.Application)
return; //We closed it, do not attempt to recover.
// Library/Peer closed it so recover. [Code snipped]
};
However, the code in ModelBase.WaitForConfirmsOrDieAsync does this:
Since it is using ShutdownInitiator.Application, my autorecovery code does not fire. I would expect the RabbitMq Client to use ShutdownInitiator.Library in this case. Is this a bug, or should I handle things differently?
The text was updated successfully, but these errors were encountered:
Resolve#1039 Confirms Failure should use ShutdownInitiator.Library
(cherry picked from commit 7557d0c)
Conflicts:
projects/RabbitMQ.Client/client/impl/ModelBase.cs
I am using logic similar to that mentioned in #159 to recover connections, and it has worked great except for a recent case. The logic is:
However, the code in
ModelBase.WaitForConfirmsOrDieAsync
does this:rabbitmq-dotnet-client/projects/RabbitMQ.Client/client/impl/ModelBase.cs
Lines 1098 to 1121 in 66dc8ca
Since it is using
ShutdownInitiator.Application
, my autorecovery code does not fire. I would expect the RabbitMq Client to useShutdownInitiator.Library
in this case. Is this a bug, or should I handle things differently?The text was updated successfully, but these errors were encountered: