Note that there are some explanatory texts on larger screens.

plurals
  1. POSignalR - Websockets - Buffer Length Exceeded
    text
    copied!<p>I configured signalr diagnostics to help track down messages from client to server that were not reaching the server... I uncovered the following exception detail which is pretty much what I suspected was happening.</p> <pre><code> SignalR.Transports.WebSocketTransport Error: 0 : OnError(08af5ad0-d63d-42a3-8e00-3c109da3be6b, System.InvalidOperationException: Buffer length exceeded at Microsoft.AspNet.SignalR.Infrastructure.ByteBuffer.Append(Byte[] segment) at Microsoft.AspNet.SignalR.WebSockets.WebSocketMessageReader.&lt;ReadMessageAsync&gt;d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.&lt;ProcessWebSocketRequestAsync&gt;d__8.MoveNext()) </code></pre> <p>From the packages.config; this is the SignalR version details</p> <pre><code> &lt;package id="Microsoft.AspNet.SignalR" version="1.1.2" targetFramework="net45" /&gt; &lt;package id="Microsoft.AspNet.SignalR.Core" version="1.1.2" targetFramework="net45" /&gt; &lt;package id="Microsoft.AspNet.SignalR.JS" version="1.1.2" targetFramework="net45" /&gt; &lt;package id="Microsoft.AspNet.SignalR.Owin" version="1.1.2" targetFramework="net45" /&gt; &lt;package id="Microsoft.AspNet.SignalR.SystemWeb" version="1.1.2" targetFramework="net45" /&gt; </code></pre> <p>I am using SignalR as a javascript library test framework. SignalR allows the server to invoke client side js lib functions which involve invoking other webservices or establishing connections to other websockets and processing async feeds.</p> <p>I have encountered one particular js lib function which invokes a json webservice and the response is sufficiently large to exceed the signalR internal buffers.</p> <p>So, what is the maximum buffer length? Is it configurable? </p> <p>If not; does signalR support message chunking? Or will I need to implement a solution of my own?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload