You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take the case where current time is very close to, but not yet rolled over. We then add some timeout value causing a rollover on the timeoutMs variable.
We then check if the current time is greater than or equal to the timeout time
current time = 4294957296
timeoutMs = current time + 20000 = 20000
*continue executing*
Current Time = current time + ΔT where ΔT is less than 2^32 - current time
currentTime >= timeoutMs = true until current time rolls over.
The text was updated successfully, but these errors were encountered:
In core_mqtt.c, sendBuffer a timeout value is calculated by reading the current time and adding some timeout to that value.
coreMQTT/source/core_mqtt.c
Line 877 in 58d626a
Take the case where current time is very close to, but not yet rolled over. We then add some timeout value causing a rollover on the timeoutMs variable.
We then check if the current time is greater than or equal to the timeout time
coreMQTT/source/core_mqtt.c
Line 912 in 58d626a
This check will erroneously fail.
For Example:
The text was updated successfully, but these errors were encountered: