Pārlūkot izejas kodu

Fix bug which prevents receiving large packets for UWP.

release/3.x.x
Christian Kratky pirms 6 gadiem
vecāks
revīzija
3d0ecc05ff
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs

+ 5
- 1
Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs Parādīt failu

@@ -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);
}



Notiek ielāde…
Atcelt
Saglabāt