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

Fix ReceiveAsync resetting ReceiveTimeout #6718

Merged
merged 1 commit into from
May 3, 2023

Conversation

Arkatufus
Copy link
Contributor

Fixes #6653

Changes

  • Pass in boolean flag to stop CheackReceiveTimeout from resetting every time.

@@ -162,7 +162,7 @@ public static void RunTask(Func<Task> asyncAction)
if (exception == null)
{
dispatcher.Resume(context);
context.CheckReceiveTimeout();
context.CheckReceiveTimeout(context.CurrentMessage is not INotInfluenceReceiveTimeout);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

reschedule flag defaults to true, if we don't set this, ReceiveAsync will always resets receive timeout.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -162,7 +162,7 @@ public static void RunTask(Func<Task> asyncAction)
if (exception == null)
{
dispatcher.Resume(context);
context.CheckReceiveTimeout();
context.CheckReceiveTimeout(context.CurrentMessage is not INotInfluenceReceiveTimeout);
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) May 3, 2023 15:56
@Aaronontheweb Aaronontheweb merged commit 541ffc9 into akkadotnet:dev May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReceiveAsync paired with Timers results in actors never stopping from idle timeout
2 participants