Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Avoid many pointless connection attempts #451

Merged
merged 3 commits into from
Mar 11, 2015

Conversation

bboreham
Copy link
Contributor

Add an 'outbound' field on each connection, and only attempt new connections to the remote side of outbound connections.
This fixes #448, which is particularly important as you raise the connection limit per #426.

NOTE: This changes the wire protocol, hence the protocol version number is incremented.

and only attempt new connections to the remote side of outbound connections.
@@ -16,6 +16,7 @@ type Connection interface {
BreakTie(Connection) ConnectionTieBreak
RemoteTCPAddr() string
Established() bool
Outbound() bool

This comment was marked as abuse.

rade added a commit that referenced this pull request Mar 11, 2015
Avoid many pointless connection attempts

Fixes #448.
@rade rade merged commit 0d5562a into weaveworks:master Mar 11, 2015
@rade rade removed the in progress label Apr 18, 2015
@rade rade modified the milestone: 0.10.0 Apr 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

don't attempt to connect to remote addresses of inbound connections
2 participants