Flush even before we get end of message
This commit is contained in:
parent
bbecb0c0dc
commit
eef2f14c78
|
|
@ -54,14 +54,11 @@ namespace Microsoft.AspNetCore.Sockets
|
|||
{
|
||||
outputBuffer.Advance(result.Count);
|
||||
|
||||
if (result.EndOfMessage)
|
||||
{
|
||||
// Flush when we get an entire message
|
||||
await outputBuffer.FlushAsync();
|
||||
// Flush the written data to the channel
|
||||
await outputBuffer.FlushAsync();
|
||||
|
||||
// Allocate a new buffer to further writing
|
||||
outputBuffer = _channel.Input.Alloc();
|
||||
}
|
||||
// Allocate a new buffer to further writing
|
||||
outputBuffer = _channel.Input.Alloc();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue