Skip to content

docs/p2p: updates from review#1076

Merged
melekes merged 4 commits intodevelopfrom
p2p-docs-updates
Jan 9, 2018
Merged

docs/p2p: updates from review#1076
melekes merged 4 commits intodevelopfrom
p2p-docs-updates

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Jan 7, 2018

Addresses feedback from #1057

@ebuchman ebuchman requested a review from melekes as a code owner January 7, 2018 22:29
@codecov-io
Copy link

codecov-io commented Jan 7, 2018

Codecov Report

❗ No coverage uploaded for pull request base (develop@32311ac). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #1076   +/-   ##
==========================================
  Coverage           ?   59.94%           
==========================================
  Files              ?      116           
  Lines              ?    10748           
  Branches           ?        0           
==========================================
  Hits               ?     6443           
  Misses             ?     3724           
  Partials           ?      581

The node operates in seed mode. It will kick incoming peers after sharing some peers.
It will continually crawl the network for peers.
The node operates in seed mode. In seed mode, a node continuously crawls the network for peers,
and upon incoming connection shares some peers and disconnect.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disconnects

RemoteAddr string
ListenAddr string
Version string
Channels []int8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something wrong with formatting

When we haven't received any messages on an `MConnection` in a time `pingTimeout`, we send a ping message.
When a ping is received on the `MConnection`, a pong is sent in response.
When a ping is received on the `MConnection`, a pong is sent in response only if there are no other messages
to send and the peer has not sent us too many pings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many are too many pings?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

			// TODO: prevent abuse, as they cause flush()'s.
			c.Logger.Debug("Receive Ping")
			c.pong <- struct{}{}

it's a TODO I believe

@melekes melekes merged commit 03a14d8 into develop Jan 9, 2018
@melekes melekes deleted the p2p-docs-updates branch January 9, 2018 17:44
zramsay pushed a commit that referenced this pull request Jan 10, 2018
ebuchman added a commit that referenced this pull request Jan 19, 2018
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.

4 participants