if we abort accept() call, an ECONNABORTED is expected. and we should
handle it, otherwise unhandled exception will be noticed by seastar's
reactor. and it complains in that case.
Signed-off-by: Kefu Chai <kchai@redhat.com>
logger().error("NBDHandler::run saw exception {}", e);
});
});
+ }).handle_exception_type([] (const std::system_error &e) {
+ // an ECONNABORTED is expected when we are being stopped.
+ if (e.code() != std::errc::connection_aborted) {
+ logger().error("accept failed: {}", e);
+ }
});
});
}).handle_exception_type([](const seastar::gate_closed_exception&) {});