Skip to content

Change idle timeout to track last activity#5521

Draft
jsdt wants to merge 3 commits into
aasoni/ws-idle-timeout-reworkfrom
jsdt/ws-idle-timeout-tweak
Draft

Change idle timeout to track last activity#5521
jsdt wants to merge 3 commits into
aasoni/ws-idle-timeout-reworkfrom
jsdt/ws-idle-timeout-tweak

Conversation

@jsdt

@jsdt jsdt commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

Instead of passing around part of a watch to extend the timeout, this change adds a last_activity field to ActorState. It can be updated by calling record_activity() on the actor state, and you can get an idle timeout future by calling idle_timer on the actor state. IMO this is a bit more straightforward, and it reduces how many arguments we are passing around.

Expected complexity level and risk

Testing

I updated the existing unit tests.

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.

1 participant