]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: refactor socket managements
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 25 Nov 2022 02:08:52 +0000 (10:08 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 8 Feb 2023 06:07:41 +0000 (14:07 +0800)
commitf7b622b231d8dbf3f677e4cff4be7d77afcb00d8
tree5263a89ecc36a2b6c8a8c26eadb7f998177501cb
parentf8fe2ad087df49fd0ca4afd369b7a69c6df3af70
crimson/net: refactor socket managements

Previously, the socket state is transparent to the protocol and
implicitly handled. Move the responsibilities into protocol for finer
controls to further decouple the IO and handshake.

Also, refactor the fault handling and make the in/out message
dispatching more symmetric.

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