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

fix: ensure the ping interval waker is registered #1199

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

dodomorandi
Copy link
Contributor

@dodomorandi dodomorandi commented Jan 25, 2024

When an interval is ready, it does not need to register its internal waker, leading to the future not being polled anymore if the connection received no data.

The fix is pretty simple, and it should never cause any problems unless the interval duration is very close to zero, which will probably cause strange issues anyway.

When an interval is ready it does not need to register its internal
waker, leading to the future not being polled anymore if no data is
received from the connection.

The fix is pretty simple, and it should never cause any problem unless
the interval duration is very close to zero, which will probably cause
strange issues anyway.
@Jarema Jarema self-requested a review January 26, 2024 13:39
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks for catching this one!

@Jarema Jarema merged commit a1876c4 into nats-io:main Jan 26, 2024
11 checks passed
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