Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inbound internet connections counts #1868

Merged
merged 4 commits into from
Sep 19, 2016

Conversation

rade
Copy link
Member

@rade rade commented Sep 15, 2016

Fixes #1867.

- remoteAddr was never being set
- localAddr is part of the localNodeID in all the cases it was set, so
  it effectively was part of the key twice
Instead of including the localEndpointID in the key, use the
address, so the port is excluded. That way we don't end up with multiple
rows for inbound connections from the same internet address.

We also augment the address with the DNS info here, which saves us from
having to look it up later on.

Fixes #1867
@@ -149,7 +149,7 @@ func TestMakeDetailedHostNode(t *testing.T) {
Columns: detailed.NormalColumns,
Connections: []detailed.Connection{
{
ID: fmt.Sprintf("%s:%s-%s:%s-%d", fixture.ServerHostNodeID, "", fixture.ClientHostNodeID, "", 80),
ID: fmt.Sprintf("%s-%s-%d", fixture.ServerHostNodeID, "", 80),

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@rade rade force-pushed the 1867-inbound-internet-connections-counts branch from a0bef49 to 591e72e Compare September 19, 2016 10:15
@rade rade merged commit 7b0f0cb into master Sep 19, 2016
@rade rade deleted the 1867-inbound-internet-connections-counts branch July 5, 2017 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants