Skip to content

Commit

Permalink
Revert "[mqtt] extend subinfo record lifetime to 20 seconds for OTA a…
Browse files Browse the repository at this point in the history
…nd etc"

This reverts commit ae2c2e5.
  • Loading branch information
Yang, Xiao committed Aug 7, 2018
1 parent aa68707 commit 6ab66ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/protocol/mqtt/client/mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,6 @@ RETURN :
return rc;
}

#define CONFIG_SUBINFO_LIFE (10)

/* remove node of list of wait subscribe ACK, which is in invalid state or timeout */
static int MQTTSubInfoProc(iotx_mc_client_t *pClient)
Expand Down Expand Up @@ -2200,7 +2199,7 @@ static int MQTTSubInfoProc(iotx_mc_client_t *pClient)
}

/* check the request if timeout or not */
if (utils_time_spend(&subInfo->sub_start_time) <= (pClient->request_timeout_ms * CONFIG_SUBINFO_LIFE)) {
if (utils_time_spend(&subInfo->sub_start_time) <= (pClient->request_timeout_ms * 5)) {
/* continue to check the next node */
continue;
}
Expand Down

0 comments on commit 6ab66ac

Please sign in to comment.