Merge pull request #44 from bboreham/23_retry_peers

Rewrite of ConnectionMaker

Fixes #23. Fixes #26.
This commit is contained in:
rade committed 2014-09-15 17:42:32 +01:00
commit af94153d96
7 files changed
+150 -101

No files matched your search

+1 -6
View File
@@ -124,12 +124,7 @@ func main() {
router := weave.NewRouter(iface, ourName, []byte(password), connLimit, bufSz*1024*1024, logFrame)
router.Start()
for _, peer := range peers {
targetPeer := peer
go func() {
if err := router.Ourself.CreateConnection(targetPeer, weave.UnknownPeerName); err != nil {
log.Println(err)
}
}()
router.ConnectionMaker.InitiateConnection(peer)
}
go handleHttp(router)
handleSignals(router)