~rogpeppe/juju-core/502-upgrades-simplify

Viewing all changes in revision 2309.

  • Committer: Tarmac
  • Author(s): Roger Peppe
  • Date: 2014-02-10 14:22:30 UTC
  • mfrom: (2303.1.2 499-state-fix-timeout)
  • Revision ID: tarmac-20140210142230-bs4gcvlb7cjb3tig
[r=rogpeppe] state: fix i/o timeout errors

Since mongo has been fixed to time out sockets,
(in revision 241 of mgo)
the state package was failing quite a lot.
This should make it more robust.
In particular, we use the Timeout field on
mgo.DialInfo to signify the amount of time
we are prepared to wait before connection,
not the amount of time to wait for a response,
so this change makes the latter independent
of the former.

https://codereview.appspot.com/61010043/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: