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

Resolving the remote host name to IP only once at startup time. #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

derjohn
Copy link
Contributor

@derjohn derjohn commented Sep 14, 2016

No description provided.

@@ -26,6 +26,12 @@ def initialize
@loggers = {}
end

def start
super
require 'resolv'

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.

@troy
Copy link

troy commented Sep 14, 2016

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

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.

@derjohn
Copy link
Contributor Author

derjohn commented Nov 23, 2021

Long open thing? Still valid or #close ?

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.

3 participants