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

[Merged by Bors] - feat: enable socket keepalive by default #211

Closed
wants to merge 1 commit into from
Closed

[Merged by Bors] - feat: enable socket keepalive by default #211

wants to merge 1 commit into from

Conversation

galibey
Copy link

@galibey galibey commented Aug 28, 2023

Added an ability to set socket keepalive property.

By default, all fluvio TCP connections will have set keepalive=true. This is needed to prevent silently closing TCP connections by OS or network gateways when there is no traffic for an extended period of time. It often happens for consumers when there is no data on the topic for a period of more than one day. TCP session gets closed but the consumer does not determine that and keeps waiting for the data. For instance https://github.com/infinyon/roadmap/issues/85

@galibey galibey self-assigned this Aug 28, 2023
@galibey galibey requested review from digikata and sehz August 28, 2023 11:40
Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

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

LGTM. Nice job

@galibey
Copy link
Author

galibey commented Aug 28, 2023

bors r+

bors bot pushed a commit that referenced this pull request Aug 28, 2023
Added an ability to set socket `keepalive` property.

By default, all fluvio TCP connections will have set `keepalive=true`.  This is needed to prevent silently closing TCP connections by OS or network gateways when there is no traffic for an extended period of time. It often happens for consumers when there is no data on the topic for a period of more than one day. TCP session gets closed but the consumer does not determine that and keeps waiting for the data. For instance https://github.com/infinyon/roadmap/issues/85
@bors
Copy link

bors bot commented Aug 28, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: enable socket keepalive by default [Merged by Bors] - feat: enable socket keepalive by default Aug 28, 2023
@bors bors bot closed this Aug 28, 2023
@galibey galibey deleted the feat/add-keep-alive-for-tcp-connection branch August 28, 2023 17:55
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.

2 participants