Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

timtay-microsoft
Copy link
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
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
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
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@timtay-microsoft
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@timtay-microsoft timtay-microsoft merged commit 2d3d2b2 into main Nov 7, 2023
25 of 27 checks passed
@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.

None yet

2 participants