Skip to content
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

maximum message size #1205

Closed
ionelmoisuc opened this issue Dec 24, 2012 · 8 comments
Closed

maximum message size #1205

ionelmoisuc opened this issue Dec 24, 2012 · 8 comments

Comments

@ionelmoisuc
Copy link

@ionelmoisuc ionelmoisuc commented Dec 24, 2012

Hello

What is the maximum message size that SignalR is meant to handle?

If client A sends a message split in chunks (a few messages) to a server and the server resends all those messages to client B, will client B receive messages in the same order as they were sent by client A ?

Thanks

@davidfowl
Copy link
Member

@davidfowl davidfowl commented Dec 24, 2012

  1. There's no maximum message size but we recommend < 32K per message since they are being stored in a ring buffer (default size 5000). Storing larger messages will be awful for performance. See #1114 for details on how to handle large messages by chunking.
  2. Yes
@davidfowl davidfowl closed this Dec 24, 2012
@mookid8000
Copy link

@mookid8000 mookid8000 commented Feb 12, 2014

Maybe it's me - but I'm seeing a maximum message size:
capture
with a funny (as in: "LOL - funneh!") error message:
capture2

The number of bytes actually transferred is slightly different than the numbers seen in the tests because the numbers in the tests is the size of a byte[] payload that I transfer in an envelope-type of object.

Is there something wrong with me?

@rayman7718
Copy link

@rayman7718 rayman7718 commented Sep 18, 2014

I'm seeing the same issue outlined above.
"There's no maximum message size but we recommend < 32K per message"
Well given that things don't work (and don't even provide a valid exception message) at a message size of >36864, there IS a maximum message size.

You recommend 32 K? why is that the limit, how is 32 K significant? Are we all supposed to send 8 bits around?

@gdefombelle
Copy link

@gdefombelle gdefombelle commented Sep 25, 2014

limitation is 4Ko ;

@rayman7718
Copy link

@rayman7718 rayman7718 commented Sep 25, 2014

4Ko ??? You mean 4 KB? 40 KB ? 45 KB ?
Why is it useful ?

@Torvin
Copy link

@Torvin Torvin commented Jun 9, 2016

@mookid8000 I think what you are seeing is a WebSocket size limit.

@fabiobenavides
Copy link

@fabiobenavides fabiobenavides commented Oct 3, 2018

Any way to measure the message size? we tried that but it is not working:
https://stackoverflow.com/questions/51865925/monitoring-signalr-message-sizes

Thank you!

@anurse
Copy link
Contributor

@anurse anurse commented Oct 3, 2018

How have you configured your custom MessageBus? It's possible it's not properly registered and thus not being called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.