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 timeout support for handlers #547

Merged
merged 1 commit into from Dec 5, 2016
Merged

add timeout support for handlers #547

merged 1 commit into from Dec 5, 2016

Conversation

lobeck
Copy link
Contributor

@lobeck lobeck commented Sep 9, 2016

No description provided.


def timeout=(value)
conf['handlers'][resource[:name]]['timeout'] = value
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a trailing newline here?

@@ -62,6 +62,10 @@
# Hash. Handler subdue configuration
# Default: undef
#
# [*timeout*]
# Hash. Handler timeout configuration
# Default: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

default is undef as far as I can see?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, needs to be undef. We've taken the value from the sensu documentation, but the default only applies for tcp handlers (https://github.com/sensu/sensu/blob/master/lib/sensu/server/handle.rb#L63)

Will switch to undef here.

@jaxxstorm
Copy link
Contributor

@lobeck can you rebase this and fix the conflicts?

@lobeck
Copy link
Contributor Author

lobeck commented Dec 2, 2016

@jaxxstorm done.

@jaxxstorm jaxxstorm merged commit 810753b into sensu:master Dec 5, 2016
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