Increase the size of the WebSockets buffer to 4K. (#448)
This commit is contained in:
parent
06e3a08ac0
commit
04863032a2
|
|
@ -68,7 +68,7 @@ namespace Microsoft.AspNetCore.Sockets.Client
|
|||
|
||||
while (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
const int bufferSize = 1024;
|
||||
const int bufferSize = 4096;
|
||||
var totalBytes = 0;
|
||||
var incomingMessage = new List<ArraySegment<byte>>();
|
||||
WebSocketReceiveResult receiveResult;
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ namespace Microsoft.AspNetCore.SignalR.Tests
|
|||
{
|
||||
get
|
||||
{
|
||||
yield return new object[] { new string('A', 5 * 1024) };
|
||||
yield return new object[] { new string('A', 5 * 1024 * 1024 + 32) };
|
||||
yield return new object[] { new string('A', 5 * 4096) };
|
||||
yield return new object[] { new string('A', 1000 * 4096 + 32) };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue