Re: [ovs-dev] [PATCH v4] python: Fix decoding error when the received data is larger than 4096.

2018-03-09 Thread Ben Pfaff
On Thu, Mar 01, 2018 at 02:27:37PM +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

[ovs-dev] [PATCH v4] python: Fix decoding error when the received data is larger than 4096.

2018-02-28 Thread Guoshuai Li
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