-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use http client created in Swarm #2757
Use http client created in Swarm #2757
Conversation
Ping @allencloud |
I think it seems that we vendored a new version of package samalba/dockerclient. Do we ignore that kind of information now? @nishanttotla |
@allencloud see #1879. |
@nishanttotla A small issue related: In func HTTPClientAndScheme (cluster/engine.go), there is no need for type check since httpClient and url.Scheme are both valid in engine. If do need a check would it be SwarmClient instead of DockerClient I guess? |
7b5adaf
to
b429eb4
Compare
@xihan88 the check is needed to make sure it isn't a |
b429eb4
to
9d1f090
Compare
@allencloud updated request default timeout to 30 seconds. |
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
9d1f090
to
31bb6a2
Compare
cc @wsong. This PR is the last step before we can get rid of |
The changes made in #2206 to address #1879 were lost recently. This PR re-introduces those changes. There was a similar effort in #2555 but that has stalled.
This also prevents creating unnecessary extra http connections.
Signed-off-by: Nishant Totla nishanttotla@gmail.com