Merge pull request #41791 from rzarzynski/wip-crimson-monc-no_auth_req_when_inactive

crimson/monc: don't serve auth requests without active mon connection.

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-06-09 23:40:21 +08:00 committed by GitHub
commit 33b3e7cc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -587,6 +587,11 @@ int Client::handle_auth_request(crimson::net::ConnectionRef con,
logger().info("skipping challenge on {}", con);
authorizer_challenge = nullptr;
}
if (!active_con) {
logger().info("auth request during inactivity period");
// let's instruct the client to come back later
return -EBUSY;
}
bool was_challenge = (bool)auth_meta->authorizer_challenge;
EntityName name;
AuthCapsInfo caps_info;