-
Notifications
You must be signed in to change notification settings - Fork 38.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra empty line a["\n"] messages from ActiveMQ STOMP broker #23713
Comments
Are you sure about this conclusion? |
@rstoyanchev I double checked and the issue is with the message itself not with the preSend method i guess. If I send a simple string as payload in the convertAndSend method then it does not produce this noise. But if I use any object as string(using Jackson or gson converter) as payload then it sends the additional line. Please find the below link to test this issue. Also the noise is not a["\n"] in my sample application but it is empty message. But with my original application the payload is very big so it sends a["\n"] as additional message with every message. |
Thanks for providing the sample. ActiveMQ appears to be sending extra new lines at the end of STOMP frames, i.e. after the terminating
The current logic does skip empty new lines at the start of a frame but if they arrive in the same chunk as the message, it ends up (incorrectly) interpreting that as a heartbeat. |
version::
issue:
Client receives extra/un-necessary message(a["\n"] or empty line) for each message sent from external broker via brokerrelay
The text was updated successfully, but these errors were encountered: