diff options
| author | Christian Hopps <chopps@labn.net> | 2023-05-06 00:09:46 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-05-28 05:13:22 -0400 | 
| commit | 5f05ff582117c6c5f658ed31ff8f78a029c3fab1 (patch) | |
| tree | aca94a3569ddc4cb73affb01b465f18069ff1421 /lib/mgmt_be_client.c | |
| parent | 08e8019c6545e21290dc84daecad4a4b338b156b (diff) | |
lib: add short-circuit operation between same process
- Use a socketpair for connection, and direct (no event loop)
message sending and handling.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.c')
| -rw-r--r-- | lib/mgmt_be_client.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c index 0b98f979ec..29b54690d2 100644 --- a/lib/mgmt_be_client.c +++ b/lib/mgmt_be_client.c @@ -138,7 +138,7 @@ static int mgmt_be_client_send_msg(struct mgmt_be_client_ctx *client_ctx,  	return msg_conn_send_msg(  		&client_ctx->client.conn, MGMT_MSG_VERSION_PROTOBUF, be_msg,  		mgmtd__be_message__get_packed_size(be_msg), -		(size_t(*)(void *, void *))mgmtd__be_message__pack); +		(size_t(*)(void *, void *))mgmtd__be_message__pack, false);  }  static struct mgmt_be_batch_ctx * @@ -966,7 +966,7 @@ uintptr_t mgmt_be_client_lib_init(struct mgmt_be_client_params *params,  			MGMTD_BE_SERVER_PATH, mgmt_be_client_notify_conenct,  			mgmt_be_client_notify_disconenct,  			mgmt_be_client_process_msg, MGMTD_BE_MAX_NUM_MSG_PROC, -			MGMTD_BE_MAX_NUM_MSG_WRITE, MGMTD_BE_MSG_MAX_LEN, +			MGMTD_BE_MAX_NUM_MSG_WRITE, MGMTD_BE_MSG_MAX_LEN, false,  			"BE-client", MGMTD_DBG_BE_CLIENT_CHECK());  	MGMTD_BE_CLIENT_DBG("Initialized client '%s'", params->name);  | 
