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

httpjson: support configurable response_timeout #1651

Merged
merged 4 commits into from
Aug 30, 2016
Merged

httpjson: support configurable response_timeout #1651

merged 4 commits into from
Aug 30, 2016

Conversation

gam-phon
Copy link
Contributor

@gam-phon gam-phon commented Aug 18, 2016

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

@gam-phon
Copy link
Contributor Author

gam-phon commented Aug 18, 2016

Added #1650

@gam-phon
Copy link
Contributor Author

I have a data race. I will try to fix it. I am new to go ^_^

@@ -221,6 +225,10 @@ func (h *HttpJson) gatherServer(
// string: body of the response
// error : Any error that may have occurred
func (h *HttpJson) sendRequest(serverURL string) (string, float64, error) {
// Set default values
if h.ResponseTimeout.Duration < time.Second {
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be set in the init() function instead

@gam-phon
Copy link
Contributor Author

@sparrc I have moved the default value of ResponseTimeout to init. Thanks ^_^

@sparrc
Copy link
Contributor

sparrc commented Aug 30, 2016

thanks @gam-phon

@sparrc sparrc merged commit 32aa1cc into influxdata:master Aug 30, 2016
@gam-phon
Copy link
Contributor Author

@sparrc Welcome. Thanks for merging.

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