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);
|
outputBuffer.Advance(result.Count);
|
||||||
|
|
||||||
if (result.EndOfMessage)
|
// Flush the written data to the channel
|
||||||
{
|
await outputBuffer.FlushAsync();
|
||||||
// Flush when we get an entire message
|
|
||||||
await outputBuffer.FlushAsync();
|
|
||||||
|
|
||||||
// Allocate a new buffer to further writing
|
// Allocate a new buffer to further writing
|
||||||
outputBuffer = _channel.Input.Alloc();
|
outputBuffer = _channel.Input.Alloc();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue