pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

transfer message size limitation with libpomelo

Open demilich opened this issue 13 years ago • 2 comments

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.

demilich avatar Mar 31 '13 08:03 demilich

it works fine on ios client.

zhanghaojie avatar Apr 02 '13 18:04 zhanghaojie

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.

changchang avatar Apr 03 '13 03:04 changchang