]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: misc fixes in v1 read path
authorYingxin Cheng <yingxincheng@gmail.com>
Mon, 29 Apr 2019 09:03:00 +0000 (17:03 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Mon, 29 Apr 2019 15:13:23 +0000 (23:13 +0800)
commit5ca97cd358b93c0cdca3509b232350ae5893fe69
tree7b377ac79964018e44433d2d0473476607d90c65
parentf2bafe4b0333afbf288937b662c71e159c5abb9d
crimson/net: misc fixes in v1 read path

* abort when decoding/signature-check failed;
* change log-level to warn;
* free the decoded message when failed;
* add unlikely to read path;

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/Errors.cc
src/crimson/net/Errors.h
src/crimson/net/ProtocolV1.cc