Provide a better error message when TransportMaxBufferSize exceeded in a single message #5307
Labels
accepted
This issue has completed "acceptance" testing (including accessibility)
area-signalr
Includes: SignalR clients and servers
blocked
The work on this issue is blocked due to some dependency
Milestone
Right now, if you send a single message that serializes to larger than 32KB, you get:
These errors are unpleasant. They occur because we are trying to read a single message that is larger than the backpressure size. We should provide a better error message in this case (heck, even if it takes just catching the exception). Something like "Message exceeded the maximum buffer size of {TransportMaxBufferSize} bytes"
It may be difficult to do this though, so we'll need to design this a bit (and may decide it's not feasible in the process).
The text was updated successfully, but these errors were encountered: