Allow to turn synchronous recvmsg/sendmsg on with a config option

This commit is contained in:
Vitaliy Filippov
2020-06-23 01:15:07 +03:00
parent 9abaf5b735
commit 62343c8022
6 changed files with 51 additions and 21 deletions
+2
View File
@@ -46,6 +46,8 @@ cluster_client_t::cluster_client_t(ring_loop_t *ringloop, timerfd_manager_t *tfd
msgr.stop_client(op->peer_fd);
delete op;
};
msgr.use_sync_send_recv = config["use_sync_send_recv"].bool_value() ||
config["use_sync_send_recv"].uint64_value();
st_cli.tfd = tfd;
st_cli.on_load_config_hook = [this](json11::Json::object & cfg) { on_load_config_hook(cfg); };