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

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


  Branch: refs/heads/branch-2.8
  Home:   https://github.com/openvswitch/ovs
  Commit: 9f97b4555879317521a950d0dcdf961baa98e053
      https://github.com/openvswitch/ovs/commit/9f97b4555879317521a950d0dcdf961baa98e053
  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