Signed-off-by: Samuel Just <sjust@redhat.com>
} else {
reply_tag = CEPH_MSGR_TAG_READY;
}
- messenger.unregister_conn(existing);
if (!existing->is_lossy()) {
// reset the in_seq if this is a hard reset from peer,
// otherwise we respect our original connection's value
existing->requeue_sent();
std::tie(conn.out_seq, conn.out_q) = existing->get_out_queue();
}
+ seastar::do_with(
+ std::move(existing),
+ [](auto existing) {
+ return existing->close();
+ });
return send_connect_reply_ready(reply_tag, std::move(authorizer_reply));
}