-
Notifications
You must be signed in to change notification settings - Fork 79
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
Sender appears to be ignoring max_frame_size #410
Comments
Are you waiting for the connection to be opened before sending? |
Thanks so much for the help @grs - this appears to have been the problem. I previously had:
Which appears to work somewhat - the message is sent successfully, as long as it doesn't exceed max_frame_size of the server. I've now changed it to:
Now it picks up the max_frame_size from the server side and splits the large message up correctly. All that being said - I think there is a problem here. Shouldn't I be able to set the max_frame_size on the connection myself? This test case fails for me:
I feel like if I'm not supposed to set max_frame_size on the client side, then it shouldn't be an option in the library, and if I'm allowed to set it then it should be honoured. Again, I really appreciate the help! |
Each side sets its max-frame-size independently. So if you set it on your connection, that is the max frame size that the broker is allowed to send to you. You cannot alter the max-frame-size the broker will accept by setting the value on your side of the connection. (If that is something that can be configured it would be configured on the broker side) |
Ah that makes sense. Thanks again! Perhaps it could be named something like max_receive_frame_size, or have a comment indicating this. |
Hi there,
I'm experiencing a problem where messages that are larger than the max_frame_size are not sent and an error is thrown.
My expectation (which may be incorrect) is that the sender should send chunks of the message buffer, each of which is smaller than the max_frame_size, until the whole message is sent.
I am using Amazon MQ (ActiveMQ) which is sending back a max_frame_size of 131072. My message appears to be size 160228 (not sure what unit this is in, I assume bytes?). I can see the message being sent, and then I get a reply that the "specified frame size 160228 greater than maximum valid frame size 131072".
I have also tried setting the max_frame_size explicitly higher and lower, but it doesn't seem to have any effect.
Any help would be most appreciated!
Logs:
The text was updated successfully, but these errors were encountered: