Matthias Radestock
8b37e07823
get rid of connection attempt count tracking
2014-09-15 15:05:40 +01:00
Matthias Radestock
5b18864aec
refactoring
...
- rename addToTargets to addTarget
- immediately add to cm.targets; the phasing was unnecessary
- don't normalise addresses in addTarget - they are already normalised
2014-09-15 13:51:57 +01:00
Bryan Boreham
ef35839d4b
Merge remote-tracking branch 'upstream/master' into 23_retry_peers
2014-09-11 19:32:12 +01:00
Matthias Radestock
51afd5e9c6
make 'weave launch' cope gracefully with existing 'weave' containers
...
Fixed #31
2014-09-11 07:56:26 +01:00
Matthias Radestock
710cf7ea8a
nicer error on 'weave stop' and make it idempotent
2014-09-11 07:33:02 +01:00
Matthias Radestock
b6351acb66
simplify error message
2014-09-11 07:19:14 +01:00
Matthias Radestock
dbbb8c690a
nicer error message on 'weave status' when there is no weave container.
2014-09-11 07:15:15 +01:00
Matthias Radestock
96766db5f0
consistency
2014-09-11 07:12:49 +01:00
Matthias Radestock
34bec14e3e
cosmetic
2014-09-10 17:48:53 +01:00
Matthias Radestock
bf38e902f2
ensure validTarget only contains addresses we aren't connected to
2014-09-10 17:47:48 +01:00
Bryan Boreham
661b3f4da1
command-line addresses are already normalised so don't need to do it again
2014-09-10 17:40:39 +01:00
Matthias Radestock
1b3122b37b
refactor: eliminate some helper functions
2014-09-10 17:02:16 +01:00
Matthias Radestock
20bfdc2e73
refactor
2014-09-10 16:54:22 +01:00
Matthias Radestock
9b1ec19432
refactor
2014-09-10 16:51:26 +01:00
Matthias Radestock
4a3fc47246
cosmetic
2014-09-10 16:47:41 +01:00
Matthias Radestock
145ebf3950
cosmetic: remove disabled log statements
2014-09-10 16:47:20 +01:00
Matthias Radestock
8488646e7b
refactor: change method/signal name
2014-09-10 16:42:33 +01:00
Matthias Radestock
4e442393b2
refactor: 'enum' -> bool
2014-09-10 16:39:05 +01:00
Matthias Radestock
ce2d3ff30a
cosmetic
2014-09-10 16:35:31 +01:00
Matthias Radestock
8cb79145fa
Merge branch '23_retry_peers' of https://github.com/bboreham/weave into bboreham-23_retry_peers
2014-09-10 16:34:10 +01:00
Bryan Boreham
c6d8623b6f
Only signal connection failures; remove successful connections when we see them
2014-09-10 16:17:56 +01:00
Bryan Boreham
0e23c29cae
cosmetic
2014-09-10 16:02:50 +01:00
Bryan Boreham
ba72999b04
cosmetic
2014-09-10 16:02:17 +01:00
Bryan Boreham
651c0a0c27
Remove tickNow() function
2014-09-10 16:00:31 +01:00
Bryan Boreham
c28ff33c84
Avoid waiting 5 seconds before starting
2014-09-10 15:26:13 +01:00
Bryan Boreham
83175cdd0a
Normalise IP addresses when adding to collections
2014-09-10 15:25:10 +01:00
Bryan Boreham
e5bd3933d8
Normalise peer address before checking
2014-09-10 14:59:32 +01:00
Bryan Boreham
2050569fb6
Break checkStateAndAttemptConnections into phases, and track the end of all connection attempts
2014-09-10 14:50:43 +01:00
Bryan Boreham
9d0af9dbfe
Keep targets around until their attempt fails
2014-09-10 14:18:41 +01:00
Bryan Boreham
4335615688
Track command-line targets in a separate set, to simplify tracking of targets
2014-09-10 14:12:37 +01:00
Bryan Boreham
634d4e0fe3
cosmetic
2014-09-10 13:45:56 +01:00
Bryan Boreham
cd92fad369
Simplify lookup in our_connected_peers
2014-09-10 13:15:56 +01:00
Bryan Boreham
b3b3ba9a21
cleaned up reconnect algorithm to improve locking, replace count with bool
2014-09-10 13:08:20 +01:00
Bryan Boreham
3644531c50
change counts to boolean when deciding if everything is connnected
2014-09-10 12:35:28 +01:00
Bryan Boreham
26f8a68a82
Remove stuff that is not needed with new ConnectionMaker approach
2014-09-10 12:29:21 +01:00
Matthias Radestock
42b7abba10
no need to expose ports
...
since 'weave launch' publishes them anyway
2014-09-10 12:13:15 +01:00
Bryan Boreham
84aeaf340a
New implementation of ConnectionMaker just periodically scanning who we need to connect to
2014-09-10 12:08:49 +01:00
Matthias Radestock
8a42f7529b
HN link
2014-09-09 14:00:31 +01:00
Bryan Boreham
42ce45dd55
remove debugging code added by accident
2014-09-09 13:10:37 +01:00
Bryan Boreham
2863d672f9
Merge branch '23_retry_peers' of https://github.com/bboreham/weave into 23_retry_peers
2014-09-09 13:08:50 +01:00
Bryan Boreham
dc927314ba
Revert "Move a couple of commmon bits of code out to utils.go"
...
This reverts commit c1856e1ff1 .
2014-09-09 13:07:55 +01:00
Bryan Boreham
c1856e1ff1
Move a couple of commmon bits of code out to utils.go
2014-09-09 13:06:37 +01:00
Bryan Boreham
c074c2991d
Pull a couple of common bits of code out into utils.go
2014-09-09 13:03:14 +01:00
Bryan Boreham
527ddfca0d
Clean up naming of commands and states
2014-09-09 12:04:05 +01:00
Bryan Boreham
6aaa57606a
Merge branch '23_retry_peers' of https://github.com/bboreham/weave into 23_retry_peers
2014-09-09 11:45:49 +01:00
Bryan Boreham
8271cbf007
In status message, change "Reconnects" to "Connections" to match what it now does
2014-09-09 11:45:09 +01:00
Bryan Boreham
c07a034e9f
Merge branch '23_retry_peers' of https://github.com/bboreham/weave into 23_retry_peers
2014-09-09 11:40:06 +01:00
Bryan Boreham
f1f1553a78
Merge remote-tracking branch 'upstream/master' into 23_retry_peers
2014-09-09 11:39:50 +01:00
Bryan Boreham
2f53df8a97
Check if we already have a connection on an address before attempting to connect to it
2014-09-09 11:27:46 +01:00
Matthias Radestock
a7ef0ea2fc
cosmetic
2014-09-09 09:53:30 +01:00