]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: enforce strict reset/accept order
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 12 Mar 2020 07:59:53 +0000 (15:59 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 20 Mar 2020 08:07:48 +0000 (16:07 +0800)
commit9cb4832410dde9a14cd2a2d45a6fcabdcf1903ae
treecda08410ac5ecca4a5da640b57646d8df651c946
parent0bae2d3d89d5316a2c037c92cd1e5a2d05264f1e
crimson/net: enforce strict reset/accept order

When a new connection tries to replace the old one, the event order
should be like:
1. reset(old);
2. accept(new);

This means we cannot just reschedule the reset event asynchronously. And
we still need to make sure the internal state is integral when reset.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/Protocol.cc
src/crimson/net/Protocol.h
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h
src/test/crimson/test_messenger.cc