fix: reset Remoter idle deadlines and refresh TLS activity - #168
Open
kentbull wants to merge 3 commits into
Open
fix: reset Remoter idle deadlines and refresh TLS activity#168kentbull wants to merge 3 commits into
kentbull wants to merge 3 commits into
Conversation
Use Tymer.start() so successful I/O refreshes inactivity from the current scheduler tyme instead of accumulating duration from the previous stop. Cover repeated refreshes and recovery after expiration.
Skip idle timer reset until a Remoter has an injected scheduler tyme. This preserves untimed TCP and HTTP use while Tymer.start() governs configured inactivity.
This was referenced Aug 27, 2026
RemoterTls overrides the plain TCP receive and send paths but omitted their activity refresh. Mirror Remoter so nonempty reads and nonzero writes reset configured inactivity without refreshing blocked or failed I/O. Extend the existing TLS integration test to verify both directions. This fixes ioflo#170 and relies on the current-tyme refresh semantics introduced earlier in this branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remoteridle deadlines from current scheduler tyme withTymer.start().RemoterTlsafter successful nonempty receives and nonzero sends.This fixes both idle-timer defects: plain TCP accumulated time from the previous deadline, while successful TLS traffic did not refresh inactivity. It complements #164, which propagates the Server timeout to accepted Remoters.
Closes #169
Closes #170