Skip to content

Commit

Permalink
Reintroduce (deprecated!) OPTION_C2D_KEEP_ALIVE_FREQ_SECS to undo a b…
Browse files Browse the repository at this point in the history
…reaking change
  • Loading branch information
jspaith committed Feb 9, 2018
1 parent 2222de6 commit 5f9e443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iothub_client/inc/iothub_client_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern "C"
static const char* OPTION_SERVICE_SIDE_KEEP_ALIVE_FREQ_SECS = "svc2cl_keep_alive_timeout_secs";

/* DEPRECATED:: OPTION_C2D_KEEP_ALIVE_FREQ_SECS is DEPRECATED! Use OPTION_SERVICE_SIDE_KEEP_ALIVE_FREQ_SECS, but OPTION_C2D_KEEP_ALIVE_FREQ_SECS legacy variable kept for back-compat. */
static const char* OPTION_C2D_KEEP_ALIVE_FREQ_SECS = "svc2cl_keep_alive_timeout_secs";
static const char* OPTION_C2D_KEEP_ALIVE_FREQ_SECS = "c2d_keep_alive_freq_secs";

/*
* @brief Ratio to be used for client side pings in AMQP protocol.
Expand Down
2 changes: 1 addition & 1 deletion iothub_client/src/iothubtransport_amqp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ IOTHUB_CLIENT_RESULT IoTHubTransport_AMQP_Common_SetOption(TRANSPORT_LL_HANDLE h
result = IOTHUB_CLIENT_OK;
}
}
else if (strcmp(OPTION_SERVICE_SIDE_KEEP_ALIVE_FREQ_SECS, option) == 0)
else if ((strcmp(OPTION_SERVICE_SIDE_KEEP_ALIVE_FREQ_SECS, option) == 0) || (strcmp(OPTION_C2D_KEEP_ALIVE_FREQ_SECS, option) == 0))
{
transport_instance->svc2cl_keep_alive_timeout_secs = *(size_t*)value;
result = IOTHUB_CLIENT_OK;
Expand Down

0 comments on commit 5f9e443

Please sign in to comment.