Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

signaling server: send fresh peer list to each node every 10 seconds #111

Merged
merged 3 commits into from
May 19, 2017

Conversation

pgte
Copy link
Contributor

@pgte pgte commented May 17, 2017

I'm building a demo using IPFS, and when testing several scenarios, IPFS was apparently unable to recover from this:

When disconnecting the network temporarily, the WebRTC peer connections disconnect shortly after. But the WS connection to the Signaling Server lingers on for a while.
Once the network is available again, each peer does not reconnect to the other known peers.

This change on the Signaling Server allows the node to get a fresh list of peers and reconnect.

@RichardLitt RichardLitt added the status/in-progress In progress label May 17, 2017
Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

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

Just needs a test.

@pgte
Copy link
Contributor Author

pgte commented May 17, 2017

@diasdavid test added by 193a0f0

@daviddias daviddias merged commit 54205e9 into master May 19, 2017
@daviddias daviddias deleted the feat/refresh-peer-list branch May 19, 2017 11:46
@daviddias daviddias removed the status/in-progress In progress label May 19, 2017
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.

3 participants