-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the subscription request for a durable subscription times out or fail on the client side, but it was accepted in the server, then if the application tries to restart the subscription request again it will fail with a "duplicate durable subscription" error until the connection is closed. This new option allows the user to decide how the server should behave when processing a duplicate durable subscription. If disabled, the default, it behaves as described above, that is, it will reject the second subscription request and return the "duplicate durable" error. If enabled, if the server detects that this is a duplicate, it will close the active one and accept the new one. It is a suspend followed by a resume. From the client perspective, if this is done in the context of #1135, then everything works well since the original subscription in the client was actually not started due to subscription request failure. However, if user try to create multiple duplicate durable subscriptions for subscription requests (Subscribe() calls) that did not fail, then their application will not be notified that the subscriptions that are being replaced are replaced, but they will simply stop receiving messages on those. Resolves #1135 Signed-off-by: Ivan Kozlovic <[email protected]>
- Loading branch information
Showing
6 changed files
with
187 additions
and
0 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
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