Skip to content

Use timer to call sleep on connection #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use timer to call sleep on connection #3

wants to merge 1 commit into from

Conversation

woakesd
Copy link

@woakesd woakesd commented Nov 19, 2019

Call connection sleep function periodically to ensure heartbeats are sent to the server

This is a rough hack which covers how I ensure heartbeats get sent. I'd be delighted to see something better, but a simpler fix would be to call conn.sleep instead of timer.sleep!

Allows heartbeat to be sent while still doing other work.
@lukebakken
Copy link
Contributor

Thanks for taking the time to put together this PR.

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