Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
expires a session after 3 unsuccessful attempts at connecting to the cloud #1776
The device and cloud may get out of sync when reusing a session. For instance, session data may become corrupted on the device, or session caches on the cloud expired.
When this occurs the device presently retries indefinitely to use the current session.
The number of times the session is used is counted - each time the session is restored as part of the main handshake, the use count is incremented. When the use count reaches the expiration count (presently 3), the session is considered invalid, forcing it to be discarded and performing a full handshake.
The use count is reset after successfully decrypting a message from the cloud. This validates the session data.
Steps to Test