Skip to content
New issue

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

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

Already on GitHub? # 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 <balazs.scheidler@axoflow.com>
Signed-off-by: Hofi <hofione@gmail.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Hofi <hofione@gmail.com>
@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 <balazs.scheidler@axoflow.com>
Signed-off-by: Hofi <hofione@gmail.com>
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 <balazs.scheidler@axoflow.com>
Signed-off-by: Hofi <hofione@gmail.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Hofi <hofione@gmail.com>
@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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants