Commit Graph
4834 Commits
Author SHA1 Message Date
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
Matthias Radestock c81ccc8492 twitter link 2014-09-09 09:51:34 +01:00
Bryan Boreham 6809a43d49 Merge remote-tracking branch 'upstream/master' into 23_retry_peers 2014-09-08 17:40:09 +01:00
Matthias Radestock 6f3de33318 gm fmt 2014-09-08 17:37:34 +01:00
Bryan Boreham 924ebc0d88 Merge branch '23_retry_peers' of https://github.com/bboreham/weave into 23_retry_peers 2014-09-08 17:35:05 +01:00
Bryan Boreham 3ceef27921 Merge branch 'master' into 23_retry_peers 2014-09-08 17:34:36 +01:00
Bryan Boreham f8f32a60ba Move call to tell ConnectionMaker that connection is established onto the queryLoop goroutine to avoid races with shutdown events 2014-09-08 17:31:38 +01:00
Bryan Boreham 64999d830d State of connection is now three-way choice rather than two booleans 2014-09-08 17:30:54 +01:00
Matthias Radestock 9bd702a7e3 go fmt 2014-09-08 16:58:33 +01:00
Bryan Boreham f3cf2b598d Add back blank line that got spuriously deleted 2014-09-08 16:33:04 +01:00
Bryan Boreham 16e9daf057 Reformatted with 'go fmt' 2014-09-08 16:25:55 +01:00
Bryan Boreham de7f4df7c9 Merge branch '23_retry_peers' of https://github.com/bboreham/weave into 23_retry_peers 2014-09-08 16:06:43 +01:00
Bryan Boreham a3312c822c Attempt to connect immediately when given a new connection 2014-09-08 16:05:54 +01:00
Bryan Boreham c58e3ae174 Merge branch 'master' into 23_retry_peers 2014-09-08 15:45:03 +01:00
Bryan Boreham 5cf2cb0c50 Keep track of which connections have been established 2014-09-08 15:36:19 +01:00
Bryan Boreham dec794eb72 Remove all references to PeerName in ConnectionMaker 2014-09-08 15:05:50 +01:00
Bryan Boreham 8b3e97b96a Change from stating which peer we expect to be on the end of a connection to accepting any known peer 2014-09-08 14:07:42 +01:00
Bryan Boreham 0a94388f0a Change ConnectionMaker from being focused on PeerName to being focused on address 2014-09-08 12:42:06 +01:00
Matthias Radestock 86fc869551 simplify 'weave run' examples
we don't need to specify /bin/bash, since that is the default
entrypoint
2014-09-08 08:59:05 +01:00
Matthias Radestock b9190e9be0 make app isolation example easier to read 2014-09-06 18:23:23 +01:00
Bryan Boreham b69682a626 Merge remote-tracking branch 'upstream/master' into 23_retry_peers 2014-09-05 19:03:49 +01:00
Bryan Boreham 783ee21461 Continue after we establish that there is nothing left to do for failedCOnnection 2014-09-05 18:28:42 +01:00
Matthias Radestock 64df1c3ca3 update diagrams 2014-09-05 17:10:26 +01:00
Bryan Boreham 5c7010625a Remove entries from the failedConnection list when they succeed.
Avoids unsightly error messages where both ends make the same
connection and we then have to drop one of them.
2014-09-05 15:45:32 +01:00
Matthias Radestock 8e6a9fb9b8 explain the 'iptables -w' check 2014-09-05 14:35:43 +01:00
rade 550aa3045d Merge pull request #25 from dpw/24_iptables_w
Check that 'iptables -w' is supported before using it

Fixes #24
2014-09-05 14:33:29 +01:00
Bryan Boreham 2d387e3847 Removed ConnectionMaker.activeConnections which is never used 2014-09-05 14:28:47 +01:00
Bryan Boreham 54d7972b5e Don't start a new connection attempt until all in-flight attempts for this peer have finished
Also cleaned up the naming slightly
2014-09-05 14:26:42 +01:00
David Wragg 91268fa0ba Check that 'iptables -w' is supported before using it
'-w' was only introduced in a recent version of iptables.  It means
"Wait for the xtables lock", so it seems reasonable to proceed without
it for older versions.
2014-09-05 12:51:41 +01:00