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

Add idle timeout support for logreader based sources #5189

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

HofiOne
Copy link
Collaborator

@HofiOne HofiOne commented Nov 25, 2024

Backport of #355 by @bazsi

Depends on #5170

Instead of having to call an extra virtual method for each I/O event,
bundle this information into the handshake call itself and track whether
handshake is in progress in the caller.

Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Hofi <[email protected]>
@HofiOne HofiOne marked this pull request as draft December 3, 2024 17:37
bazsi added 3 commits December 4, 2024 08:52
Instead of implementing timeout support in derived LogProtoClient classes,
just do it once in the prepare() wrapper.

This patch also renames "timeout" to "idle_timeout" to better reflect
its use.

Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Hofi <[email protected]>
Idle timeout is only considered when we are actually reading from the peer,
in case we are suspended because of flow-control, we ignore the
idle timeout.

Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Hofi <[email protected]>
@HofiOne HofiOne force-pushed the add-idle-timeout-support-for-logreader-based-sources branch from 231ae79 to 68d00aa Compare December 4, 2024 07:53
@kira-syslogng
Copy link
Contributor

Build FAILURE

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.

3 participants