-
Notifications
You must be signed in to change notification settings - Fork 54
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
Resolving the remote host name to IP only once at startup time. #14
base: master
Are you sure you want to change the base?
Conversation
@@ -26,6 +26,12 @@ def initialize | |||
@loggers = {} | |||
end | |||
|
|||
def start | |||
super | |||
require 'resolv' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
I'd recommend not making this the default behavior because doesn't honor DNS TTLs. As long as the app runs, the original IP will be used. That's a great hack for someone who is intentionally willing to trade fewer DNS requests for more brittleness, but it's not a great default :) |
@@ -14,7 +14,7 @@ class RemoteSyslogOutput < Fluent::Output | |||
include Fluent::Mixin::RewriteTagName | |||
|
|||
config_param :host, :string | |||
config_param :port, :integer, :default => 25 | |||
config_param :port, :integer, :default => 514 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the new Ruby 1.9 hash syntax.
Long open thing? Still valid or #close ? |
No description provided.