Skip to content

Commit

Permalink
Updated SetMulti API to use 'rbusHandle_FetchSetMultiTimeout' for tim…
Browse files Browse the repository at this point in the history
…eout value (#249)

* Updated SetMulti function with 60 sec timeout value

* Update rbus_handle.c
  • Loading branch information
NetajiPanigrahi authored Feb 13, 2025
1 parent ab1126f commit 39a9f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rbus/rbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -4145,7 +4145,7 @@ rbusError_t rbus_setMulti(rbusHandle_t handle, int numProps, rbusProperty_t prop
/* Set the Commit value; FIXME: Should we use string? */
rbusMessage_SetString(setRequest, (!opts || opts->commit) ? "TRUE" : "FALSE");

if((err = rbus_invokeRemoteMethod(firstParamName, METHOD_SETPARAMETERVALUES, setRequest, rbusHandle_FetchSetTimeout(handle), &setResponse)) != RBUSCORE_SUCCESS)
if((err = rbus_invokeRemoteMethod(firstParamName, METHOD_SETPARAMETERVALUES, setRequest, rbusHandle_FetchSetMultiTimeout(handle), &setResponse)) != RBUSCORE_SUCCESS)
{
RBUSLOG_ERROR("%s for %s failed with RBUS Daemon error: %s", __FUNCTION__, firstParamName, rbusCoreErrorToString(err));
errorcode = rbusCoreError_to_rbusError(err);
Expand Down
2 changes: 1 addition & 1 deletion src/rbus/rbus_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ uint32_t rbusHandle_FetchGetTimeout(rbusHandle_t handle)
FILE *fp = NULL;
char buf[25] = {0};
char fileName[BUF_LEN] = {'\0'};
snprintf(fileName, BUF_LEN-1, "%s/rbus_%s_timeout_set", RBUS_TMP_DIRECTORY, __progname);
snprintf(fileName, BUF_LEN-1, "%s/rbus_%s_timeout_get", RBUS_TMP_DIRECTORY, __progname);
fileName[BUF_LEN-1] = '\0';
if (access(fileName, F_OK) == 0)
{
Expand Down

0 comments on commit 39a9f9c

Please sign in to comment.