소스 검색

Fix bug which prevents receiving large packets for UWP.

release/3.x.x
Christian Kratky 6 년 전
부모
커밋
3d0ecc05ff
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs

+ 5
- 1
Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs 파일 보기

@@ -154,7 +154,11 @@ namespace MQTTnet.Implementations

private void CreateStreams()
{
_readStream = _socket.InputStream.AsStreamForRead(_bufferSize);
// Attention! Do not set the buffer for the read method. This will
// limit the internal buffer and the read operation will hang forever
// is more data than the buffer size was received.
_readStream = _socket.InputStream.AsStreamForRead();

_writeStream = _socket.OutputStream.AsStreamForWrite(_bufferSize);
}



불러오는 중...
취소
저장