Fixes end of stream at handling websockets

This commit is contained in:
2020-09-14 17:56:29 +01:00
parent 2cd531c242
commit 4fe417bd4f
2 changed files with 3 additions and 3 deletions

View File

@ -165,6 +165,7 @@ namespace Yavsc.Services
received = await liveHandler.Socket.ReceiveAsync(sBuffer, liveHandler.TokenSource.Token);
_logger.LogInformation($"Received bytes : {received.Count}");
_logger.LogInformation($"segment : offset: {sBuffer.Offset} count: {sBuffer.Count}");
_logger.LogInformation($"Is the end : {received.EndOfMessage}");
fsInputQueue.Enqueue(sBuffer);
if (received.CloseStatus.HasValue)