mirror of
https://github.com/ceph/ceph
synced 2025-03-29 23:09:47 +00:00
test/crimson: enable unauthenticated connections for async_echo
Enable co-operability with crimson-msgr in unittest_alien_echo. Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
This commit is contained in:
parent
b9b0c61bf7
commit
a8ddabb8ab
@ -26,6 +26,7 @@ struct Server {
|
||||
entity.name, "pong", entity.addr.get_nonce(), 0));
|
||||
msgr->set_cluster_protocol(CEPH_OSD_PROTOCOL);
|
||||
msgr->set_default_policy(Messenger::Policy::stateless_server(0));
|
||||
dispatcher.ms_set_require_authorizer(false);
|
||||
}
|
||||
unique_ptr<Messenger> msgr;
|
||||
struct ServerDispatcher : Dispatcher {
|
||||
@ -82,6 +83,7 @@ struct Client {
|
||||
getpid(), 0));
|
||||
msgr->set_cluster_protocol(CEPH_OSD_PROTOCOL);
|
||||
msgr->set_default_policy(Messenger::Policy::lossy_client(0));
|
||||
dispatcher.ms_set_require_authorizer(false);
|
||||
}
|
||||
struct ClientDispatcher : Dispatcher {
|
||||
std::mutex mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user