]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: add shutdown interface to Socket
authorYingxin Cheng <yingxincheng@gmail.com>
Thu, 20 Jun 2019 11:26:08 +0000 (19:26 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 10 Jul 2019 08:40:53 +0000 (16:40 +0800)
commita0e0624cd9ab09d3c1d019377f9bf586c61118d2
treefd194ed5e12453efb57813242e965e5ce9118800
parentb7010730f2d28b8f99826d7e94188aca3edbf0e4
crimson/net: add shutdown interface to Socket

* Support preemptive shutdown.
* Implement socket unittests to verify all shutdown possibilities.
* Added missing error::broken_pipe.

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