Add default timeout to CheckPeer#1191
Add default timeout to CheckPeer#1191TarogStar wants to merge 1 commit intoplanetarium:developmentfrom
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.