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
Handle cancellation token during the consumer close (#339)
* During the handle deliver,y the consumer could receive a Token cancellation
In this commit, the consumer handles it with a log and exit. It will avoid
propagating the error and close the TCP connection
* Add a lock around the IsOpen() function to make it thread-safe.
In normal situations, it does not matter. It is useful when a consumer is
created and destroyed in a short time
* Handle the Subscribe error. In case there is an error during the init.
The error will be raised to the caller, but the pool must be consistent
* Wait until the subscription is finished before the close and dispose call. If a disposed is called just after the creation
it waits.
* RawConsumer: Add check if the consumer is open before dispatch
* Client: Add nextEntityId to have always a sequential ids. It avoids using the same
ids during the recycle
* ConnectionPool.FindNextValidId/2:Change the way to give the ids. Given an `nextid` in input,
the function will always give the next value
---------
Signed-off-by: Gabriele Santomaggio <[email protected]>
0 commit comments