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: Add Connection.IsBroken #6411
Conversation
mjs
added some commits
Oct 9, 2016
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit 591e287
into
juju:master
Oct 10, 2016
mjs
deleted the
mjs:api-conn-isbroken
branch
Oct 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mjs commentedOct 10, 2016
This supports a blocking check of an api connection. It first checks the Broken channel, and if that's open tries an api ping (in most cases the ping won't be necessary).
Also updated the agent helpers to use IsBroken instead of the Broken channel when identifying failed connections. This eliminates a race and is more straightforward.