stateless_server is not appropriate for heartbeat msgrs, as it:
* will always lose when connection races;
* won't close and reset itself when fault happens, instead it just goes
to STANDBY and do nothing.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
using crimson::net::SocketPolicy;
front_msgr->set_policy(entity_name_t::TYPE_OSD,
- SocketPolicy::stateless_server(0));
+ SocketPolicy::lossy_client(0));
back_msgr->set_policy(entity_name_t::TYPE_OSD,
- SocketPolicy::stateless_server(0));
+ SocketPolicy::lossy_client(0));
auto chained_dispatchers = seastar::make_lw_shared<ChainedDispatchers>();
chained_dispatchers->push_back(*this);
return seastar::when_all_succeed(start_messenger(*front_msgr,