Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
api: API connection monitoring improvements #6398
Conversation
mjs
added some commits
Oct 6, 2016
| @@ -453,6 +460,10 @@ func (st *state) apiEndpoint(path, query string) (*url.URL, error) { | ||
| }, nil | ||
| } | ||
| +func (s *state) Ping() error { |
mjs
Oct 7, 2016
Contributor
It was pre-existing (I only moved it). I suspect it doesn't need to be exported so I'l aim for that.
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit d7da116
into
juju:master
Oct 7, 2016
mjs
deleted the
mjs:apiclient-dead-detection
branch
Oct 7, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mjs commentedOct 7, 2016
The core change here is that an api.Connection's underlying rpc.Conn's Dead channel is now monitored. This means that a broken connection is now noticed much sooner than waiting for the next connection ping (pings are still used as a fallback however).
Other improvements were made along the way: