pomelo
pomelo copied to clipboard
transfer message size limitation with libpomelo
When I use libpomelo to receive the message from server, if the message size is not big( less than 400+ bytes), the message can be received correctly. Otherwise, it can not be received correctly. The function has already been tested with web client.
it works fine on ios client.
Yeah, it is a bug in decoding the package and is fixed as https://github.com/NetEase/libpomelo/commit/bc0fbe4795874edd4cd2b3c858f2200acdbf771f#L1R170
BTW, there are 3 bytes to keep the package body length in Pomelo protocol. So the package body length limit is 2^24 bytes. It is totally enough for use.