Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Reuse HTTP client instance #442

Merged
merged 1 commit into from
Jun 20, 2016
Merged

Reuse HTTP client instance #442

merged 1 commit into from
Jun 20, 2016

Conversation

sargun
Copy link
Contributor

@sargun sargun commented Jun 20, 2016

No description provided.

@jdef jdef added the WIP label Jun 20, 2016
@sargun
Copy link
Contributor Author

sargun commented Jun 20, 2016

@kaysoky Mind running a build of this, and seeing if it solves the problem?

@@ -226,6 +225,7 @@ func (rg *RecordGenerator) loadFromMaster(ip string, port string) (state.State,
}

req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", "Mesos-DNS")
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@sargun
Copy link
Contributor Author

sargun commented Jun 20, 2016

@jdef Looks good otherwise? The only thing I was thinking of is adding the PID to the user agent. What do you think?

@jdef
Copy link
Contributor

jdef commented Jun 20, 2016

@sargun LGTM; no pid needed (too leaky)

  -Reuse HTTP client (pool) instance
  -Set user agent
@sargun sargun merged commit 57a3ce8 into master Jun 20, 2016
@sargun sargun deleted the reuse-http-pool branch June 20, 2016 23:19
@jdef jdef removed the WIP label Jun 20, 2016
@sargun sargun restored the reuse-http-pool branch September 14, 2016 20:53
@sargun sargun deleted the reuse-http-pool branch September 14, 2016 20:54
gpaul pushed a commit that referenced this pull request Feb 1, 2017
Bumped to the following commit

commit 99f84ae56e75126dd77e5de4fae2ea034a468ca1
Author: Matthijs Mekking <[email protected]>
Date:   Mon Jan 30 11:53:01 2017 +0100

    return errTruncated after setting header bits (#442)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants