-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the Unsubscribe timeout problem (#313)
- The Unsubscribe function sync (like the other commands ). The consumers' list is updated in the right way. The connection is correctly closed since there are no pending consumers. - Fix the handle delivery if the consumer is removed, but there are still chunks on the wire. Add debug logs for this situation. - Add Degug Asserts to validate the buffer size, which can help understand some parse chunk errors. That can be temporary at some point; we can remove them. - Add the cancellation token to the connection class it helps when the reader is blocked and the consumer is closed. - Given this [use case](#310) so short-life consumers, the initial credits should be low to avoid keeping the read handler busy. - Minor change is replace Memory<T> to ReadOnlyMemory<T> it is a bit faster and safe - Uniform the log debug and error messages with consumer info it adds all the consumer info that can be helpful in case of debugging and errors - Fixes #310 --------- Signed-off-by: Gabriele Santomaggio <[email protected]>
- Loading branch information
1 parent
a2e06bf
commit 0711e13
Showing
7 changed files
with
163 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.