-
Notifications
You must be signed in to change notification settings - Fork 426
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
Set max message payload size from Client class #540
Comments
@oberstet Any valuable input from your side? Tested on my side and seems to be working as expected. |
yes, correct.
yeah, those values make sense and are practical. well, 16MB on mobile networks of course depends .. but in general that should be just fine
ok, that sounds like it was just accidentally skipped - it should be a tunable knob exposed to users as well. at least that's what I now think without looking into the code;) @om26er what do you think? |
@oberstet I am a bit confused by this then. In our fork, I added the field Therefore, I would expect that the maximum bytes per message that could be received in a response to a procedure call would be 16MB, but it seems that as soon as the message received is larger than 128KB, the Exception Shouldn't the message be received anyway as long as the total amount is smaller than 16MB? Am I missing something? Just to give a bit of context, I am trying to send an image in Thank you for replying! |
I agree, that should be configurable and it was an oversight that it isn't today. Regarding sending large data, my first suggestion would be to use a binary based serializer instead of sending the image as base64. However doing that still doesn't solve the issue where you have a need to send large files. WAMP has a feature called "Progressive calls", however none of the routers out there currently implement that. In absence of "progressive calls", in one of projects we have made use of an existing feature "progressive call results". We do that by switching roles i.e. the sender registers a procedure that is able to return "progressive call results", then it notifies the receiver to call that procedure. |
@om26er Thanks for the reply! Regarding the configurable What is not so clear is this: Also, thanks for your suggestion for handling large data, but I am not sure autobahn-java supports it... It seems only the python and JS clients support it... Is it correct? |
From what I understand, the field
mMaxMessagePayloadSize
ofWebSocketOptions
is used for the maximum size of a message to be sent, while the fieldmMaxFramePayloadSize
is the maximum size of a fragment of the message, in case the message need to be splitted. Is that correct?If yes, I would like to be able to set
mMaxMessagePayloadSize
to 16MB andmMaxFramePayloadSize
to something much smaller, like 128KB.But from what I see, when calling the
connect()
method of theClient
class:I can only pass the
mMaxFramePayloadSize
in theTransportOptions
.Is there a reason why we cannot pass the
mMaxMessagePayloadSize
as well?Am I missing something?
The text was updated successfully, but these errors were encountered: