]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: close() with ms_handle_reset()
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 12 Mar 2020 04:45:38 +0000 (12:45 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 20 Mar 2020 08:07:48 +0000 (16:07 +0800)
commit22fe7ccc0b8790bbbf12c6c4d3c9ec5f1b28ebff
treebdfa58762711d81f61b2db2bfdef812005604f0b
parent6cb39e4aa890ee46cd49584ac0cc6d92d6cbad09
crimson/net: close() with ms_handle_reset()

* ms_handle_reset() should not be able to contaminate the internal
atomic messenger status, so make it an asynchronous event along
with close();

* add is_closed_clean() for messenger unit test, because the reset event
now happens after connection closed.

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