SwiftMQTT icon indicating copy to clipboard operation
SwiftMQTT copied to clipboard

Read full message from InputStream.

Open mixalich7b opened this issue 7 years ago • 0 comments

Hello! Sometimes MQTT message doesn't fit one TCP packet. It can lead to problems in MQTTSessionDelegate or even to crash in runtime (when topic of MQTTPublishPacket is too large and divided to different TCP packets). In this PR I would like to fix it using a buffer to collect the complete message.

mixalich7b avatar Apr 03 '17 00:04 mixalich7b