-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add default timeout to CheckPeer #1191
base: development
Are you sure you want to change the base?
Add default timeout to CheckPeer #1191
Conversation
It appears that over time connections can get exhausted with unlimited timeouts. With this small change my local node has had no problems for over 6 hours without restarting.
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Hi, it seems like the method |
I have not been calling the endpoint manually, and have not had time to debug exactly what is happening, but I do know that my local node has been running fine for over 24 hours now without any manual intervention, and transactions are still being sent, which was not happening before. When I get a chance I'll try adding a break point to track where it is being called from, but that probably won't happen until tomorrow or Saturday. |
This does seem like dead code, and not what affected my node. It seems it may be affected by how many/what kind of transactions are flowing through the network at the time, rather than this. It could also be related to me building it using VS 2022 in debug mode that is slightly more stable, but it is difficult to test as I don't know when the network will send tx that will cause issues. |
It appears that over time connections can get exhausted with unlimited timeouts. With this small change my local node has had no problems for over 6 hours without restarting.