On Sun, Feb 18, 2018 at 08:51:16PM +0800, Guoshuai Li wrote:
> It can only receive 4096 bytes of data each time in jsonrpc,
> when there are similar and Chinese characters occupy multiple bytes,
> it may receive half a character, this time the decoding will be abnormal.
> We need to receive the completed character to decode.
> Signed-off-by: Guoshuai Li <l...@dtdream.com>
Thanks for finding and fixing the problem.
I am worried that, with this patch, any genuine encoding errors will be
ignored. For example, bytes 0xc0 and 0xc1 never appear in a valid UTF-8
sequence, yet I believe that this code will silently ignore them, along
with whatever other data appears along with them. Do you have an idea
for how to deal with that?
dev mailing list