]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: fix unittest_seastar_messenger failure
authorYingxin Cheng <yingxincheng@gmail.com>
Mon, 14 Jan 2019 02:30:28 +0000 (10:30 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Tue, 15 Jan 2019 04:02:33 +0000 (12:02 +0800)
commit39d778b681dd90075c81aa90f4ca405939991f5c
tree06367f11fdb70fcc78a7ca7c43a7651e59b06ed5
parent5dfcb551ff65d0920d4bb1ce6581f2528cbe53e6
crimson/net: fix unittest_seastar_messenger failure

unittest_seastar_messenger is failed since updated the seastar repo.
std::system_error (error system:22, Invalid argument) will be raised
from `listener->accept()`, which will be re-raised and not be captured.

This fix is to print error logs for the unexpected exceptions in
`SocketMessenger::start()` and not raise them again.

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