-
Notifications
You must be signed in to change notification settings - Fork 445
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
DHT routing example code does not discover peers and exits irregularly #126
Comments
thanks for reporting this, @pvh ! |
It seems that // Set up of the cons might take time
(cb) => setTimeout(cb, 100) I'm going to open a PR to increase the delay. |
On a different machine here the examples work with a 100ms timeout but not a 10ms timeout, so it appears you've found the right cause, Nuno. I would suggest a more descriptive error message is worth doing. Also, if you're fixing the examples the link from the README.md is broken. |
Type: Example routing code crashes
Severity: high
Description: the example code does not execute successfully
Steps to reproduce the error:
copy examples/peer-and-content-routing/{12}.js
somewherenpm install
all the thingsnode {1,2}.js
Result
The scripts fail to discover other peers and exit irregularly.
This is the DEBUG=* from routing/1.js: https://gist.github.com/anonymous/fc0b56120e94b054d0006f35fe8a5620
The text was updated successfully, but these errors were encountered: