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

Add function for keep alive with arbitrary duration #11

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

Conversation

moznion
Copy link
Contributor

@moznion moznion commented Feb 8, 2016

Hello,

Duration of KeepAlive() is hard-coded so we cannot change that. Accordingly, I added a new function KeepAliveBy(sec time.Duration) to configure duration.

Related: #12

@moznion moznion force-pushed the keep_alive_duration_to_be_configurable branch from fa15b84 to 2348006 Compare February 9, 2016 01:05
@moznion moznion changed the title Change keep alive duration to be configurable Add function for keep alive with arbitrary duration Feb 9, 2016
c.KeepAliveBy(60)
}

// KeepAlive is meant to run as a goroutine. It sends a single whitespace
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think KeepAlive should be KeepAliveBy? Just a copy-paste typo I think

@daneharrigan
Copy link
Collaborator

@moznion very sorry about my delayed responses!

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