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 title to have unique thread name #2493

Merged
merged 3 commits into from
Jul 12, 2019

Conversation

ganmacs
Copy link
Member

@ganmacs ganmacs commented Jul 11, 2019

Which issue(s) this PR fixes:
no

What this PR does / why we need it:

According to https://docs.fluentd.org/plugin-helper-overview/api-plugin-helper-thread#methods, create_thread receives title which must be unique as an argument and http_server_helper uses thread_helper internally.
There are no problems now since http_server is used only by in_monitor plugin.
But we need to change http_server can change their name to have a unique name.

Docs Changes:

yes. need to add the description about title.

Release Note:

no

ganmacs added 2 commits July 11, 2019 17:32
```
warning: net/http: Content-Type did not set; using application/x-www-form-urlencoded
```

Signed-off-by: Yuta Iwama <[email protected]>
# @param addr [String] Listen address
# @param port [String] Listen port
# @param logger [Logger] logger used in this server
# @param default_app [Object] This method must have #call.
def create_http_server(addr:, port:, logger:, default_app: nil)
def create_http_server(title:, addr:, port:, logger:, default_app: nil)
Copy link
Member

Choose a reason for hiding this comment

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

Normal argument is better for title argument. server and other helpers use normal argument in 1st position.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed 2373dc3

Signed-off-by: Yuta Iwama <[email protected]>
@repeatedly repeatedly merged commit a4867d8 into fluent:master Jul 12, 2019
@ganmacs ganmacs deleted the add-name-to-make-unique-thread-name branch November 28, 2019 00:06
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