Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Received JetStream message may have wrong subject
The recent PR #824 tried to optimize reducing memory copy by using the non JS, non wildcard subscription's subject as the message subject. However, in case where a NATS subscription is used for the delivery subject of a AddConsumer call, then this breaks and the message would be received with the subscription subject instead of the subject that we get from MSG parsing. This PR basically reverts changes from #824 and add a subject to make sure that we catch such issue in the future. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
5 changed files
with
59 additions
and
17 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