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

Keep alives #135

Merged
merged 3 commits into from
Feb 16, 2021
Merged

Keep alives #135

merged 3 commits into from
Feb 16, 2021

Conversation

George-Payne
Copy link
Member

@George-Payne George-Payne commented Feb 9, 2021

arg default disable (set to MAX_INT) notes
keepAliveInterval 10_000 -1 < -1 throws error
keepAliveTimeout 10_000 -1 < -1 throws error
  • if the keepAliveInterval is smaller than ten seconds and greater than or equal to 0, then client log a warning

fixes: #112

- add new keepAlive parameter
- allow keepAlive to be passed via connectionString
@George-Payne George-Payne self-assigned this Feb 9, 2021
@George-Payne George-Payne added the kind/bug Issues which are a software defect label Feb 9, 2021
Copy link
Contributor

@oskardudycz oskardudycz left a comment

Choose a reason for hiding this comment

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

Looks good.

I think that we should also support keepalive_timeout_ms, but this can go as a separate discussion.

- add test cases for keepAlive various settings
- add invalid test case for keepAliveInterval
Copy link
Contributor

@oskardudycz oskardudycz left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@hayley-jean hayley-jean merged commit a4aa66a into master Feb 16, 2021
@hayley-jean hayley-jean deleted the keep-alives branch February 16, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues which are a software defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PersistentSubscription silently drops
4 participants