void SocketMessenger::do_bind(const entity_addrvec_t& addrs)
{
- Messenger::set_myaddrs(addrs);
+ // safe to discard an immediate ready future
+ (void) Messenger::set_myaddrs(addrs);
// TODO: v2: listen on multiple addresses
seastar::socket_address address(addrs.front().in4_addr());
ceph_assert(get_myaddr().is_legacy() || get_myaddr().is_msgr2());
ceph_assert(get_myaddr().get_port() > 0);
- seastar::keep_doing([this] {
+ // forwarded to accepting_complete
+ (void) seastar::keep_doing([this] {
return Socket::accept(*listener)
.then([this] (SocketFRef socket,
entity_addr_t peer_addr) {
ceph_assert(seastar::engine().cpu_id() == sid);
ceph_assert(sent_count == 0);
conn_stats.start_time = mono_clock::now();
- seastar::do_until(
+ // forwarded to stopped_send_promise
+ (void) seastar::do_until(
[this] { return stop_send; },
[this, conn] {
sent_count += 1;
seastar::future<> send_pings(const entity_addr_t& addr) {
return msgr->connect(addr, entity_name_t::TYPE_OSD
).then([this](ceph::net::ConnectionXRef conn) {
- seastar::do_until(
+ // forwarded to stopped_send_promise
+ (void) seastar::do_until(
[this] { return stop_send; },
[this, conn = &**conn] {
return conn->send(make_message<MPing>()).then([] {
auto cmd = static_cast<cmd_t>(m_cmd->cmd[0][0]);
if (cmd == cmd_t::shutdown) {
logger().info("CmdSrv shutdown...");
- cmd_msgr.shutdown();
+ // forwarded to FailoverTestPeer::wait()
+ (void) cmd_msgr.shutdown();
return seastar::now();
}
return handle_cmd(cmd, m_cmd).then([c] {