Keep track of which connections have been established

This commit is contained in:
Bryan Boreham committed 2014-09-08 15:36:19 +01:00
1 parent dec794eb72
commit 5cf2cb0c50
3 files changed
+28 -16

No files matched your search

+1 -1
View File
@@ -169,7 +169,7 @@ type ConnectionMaker struct {
type Target struct {
acceptAnyPeer bool // was this address given to us on the command line?
attempting bool // are we currently attempting to connect to this address?
conn *Connection
established bool // has the connection been established
tryAfter time.Time // next time to try this address
tryInterval time.Duration // backoff time on next failure
attemptCount int