-
Notifications
You must be signed in to change notification settings - Fork 35
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
DNS peer discovery not working properly #66
Comments
I've not seen this before but it's interesting. I'll try and have a look at it later. |
I had this today, not sure if its relevant but putting it here for later analysis:
There was then 10 minutes of just trying these two addresses, no others. |
Interesting, travis had the same problem:
|
I think this is the normal behaviour for the The question is, why does it takes 5 seconds and don't get a response? Part of the implementation or part of the DNS servers? |
You're right, not related. I think its part of the underlying OS, network, or DNS servers. To be honest, I'd probably recommend just increasing the timeout. |
Various types of connectivity issues are common. What I see from users of my app are transactions that are not sent due to insufficient peers. This is from not finding enough peers from the DNS servers, in addition to the minimum number of peers required to broadcast setting. One thing that is missing from this library is getting addresses from other peers and storing them to use later when there are not enough connections or when dns was failing. |
@HashEngineering I also came up with your last insight of remembering connected peers, but not sure how this would speed up the process. Anyway this is an optimization more than fix. Will try with increasing the timeout and report back. Since this is an intermittent issue is both hard to replicate and hard to verify. |
I have noticed sometimes the
MultiplexingDiscovery
is not able to find peers. This issue occurs randomly and is very confusing for the user: Can't see the balance increasing after send some funds.Some additional details:
Example of log file:
Have you experienced anything similar? Any ideas or alternatives?
Regards,
The text was updated successfully, but these errors were encountered: