the copy constructor of seastar::gate is deleted explicitly. so we
cannot reset FixedCPUServerSocket::shutdown_gate by assigning a new
seastar::gate to it.
since we don't reuse a FixedCPUServerSocket after calling
FixedCPUServerSocket::destroy(), it's safe to leave a closed gate after
calling FixedCPUServerSocket::reset()
Signed-off-by: Kefu Chai <kchai@redhat.com>
seastar::future<> reset() {
return container().invoke_on_all([] (auto& ss) {
assert(ss.shutdown_gate.is_closed());
- ss.shutdown_gate = seastar::gate();
ss.addr = entity_addr_t();
ss.listener.reset();
});