Keep track of which connections have been established
This commit is contained in:
1 parent
dec794eb72
commit
5cf2cb0c50
3 files changed
+28
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user