mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Fix bug which prevents receiving large packets for UWP.
This commit is contained in:
@@ -154,7 +154,11 @@ namespace MQTTnet.Implementations
|
|||||||
|
|
||||||
private void CreateStreams()
|
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);
|
_writeStream = _socket.OutputStream.AsStreamForWrite(_bufferSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user