[ovs-git] [openvswitch/ovs] 980211: python: Fix decoding error when the received data ...

GitHub noreply at github.com
Fri Mar 9 19:27:20 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 980211b75d05789f2eb47b7c3db90e82bca78f29
      https://github.com/openvswitch/ovs/commit/980211b75d05789f2eb47b7c3db90e82bca78f29
  Author: Guoshuai Li <ligs at dtdream.com>
  Date:   2018-03-09 (Fri, 09 Mar 2018)

  Changed paths:
    M python/ovs/jsonrpc.py
    M tests/ovsdb-idl.at

  Log Message:
  -----------
  python: Fix decoding error when the received data is larger than 4096.

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 <ligs at dtdream.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list