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

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

  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 OutOfMemoryException after sending a lot of huge messages #1114 for details on how to handle large messages by chunking.
  2. Yes

@mookid8000
Copy link

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

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

limitation is 4Ko ;

@rayman7718
Copy link

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

@Torvin
Copy link

Torvin commented Jun 9, 2016

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

@fabiobenavides
Copy link

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!

@analogrelay
Copy link
Contributor

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
Development

No branches or pull requests

8 participants