I have simple session enabled subscription consumed by following code snippet
Processing of messages takes longer than MaxAutoRenewDuration
After processing of the first message the pump gets stuck and no other messages are processed
Expected Behavior
Message processing will continue with another session
Discovered bug
From debugging it looks like a bug in method SessionReceivePump.MessagePumpTaskAsync in finally block.
When calling CancelAndDisposeCancellationTokenSource(renewLockCancellationTokenSource); there is a ObjectDisposedException and because of that this.maxConcurrentSessionsSemaphoreSlim.Release(); is not called and pump gets stuck while waiting on semaphore release.
Versions
OS platform and version: Windows 10
.NET Version: .NET Core 2.1
NuGet package version or commit ID: both 3.2 and 3.4
Actual Behavior
Expected Behavior
Discovered bug
Versions
Might be related to issue #595.