Skip to content

feat(iot-dev): Add configurable message expiration check job#1762

Merged
timtay-microsoft merged 2 commits into
mainfrom
timtay/expiry
Nov 7, 2023
Merged

feat(iot-dev): Add configurable message expiration check job#1762
timtay-microsoft merged 2 commits into
mainfrom
timtay/expiry

Conversation

@timtay-microsoft
Copy link
Copy Markdown
Member

Previously, the client would only check for expired messages each time it tried to send a message. Now it will check for expired messages even if the client is idle.

Previously, the client would only check for expired messages each time it tried to send a message. Now it will check for expired messages even if the client is idle.
{
try
{
correlationCallbackCleanupThread.start();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't start/stop this thread when one device in a multiplexed connection is lost. Only start/stop it when the whole connection is opened/closed

*
* @return true if the packet has been in the queues for longer than the device operation timeout and false otherwise
*/
private boolean hasOperationTimedOut(long startTime, String deviceId)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused method

@timtay-microsoft
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@timtay-microsoft
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@timtay-microsoft timtay-microsoft merged commit 2d3d2b2 into main Nov 7, 2023
@timtay-microsoft timtay-microsoft deleted the timtay/expiry branch November 7, 2023 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants