-
Notifications
You must be signed in to change notification settings - Fork 989
Fix PIBD sync stuck #3817
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
base: master
Are you sure you want to change the base?
Fix PIBD sync stuck #3817
Conversation
| /// How long the state sync should wait after requesting a segment from a peer before | ||
| /// deciding the segment isn't going to arrive. The syncer will then re-request the segment | ||
| pub const SEGMENT_REQUEST_TIMEOUT_SECS: i64 = 60; | ||
| pub const SEGMENT_REQUEST_TIMEOUT_SECS: i64 = 20; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be okay, but we do have a lot of slow peers on the network and the rangeproof segments can be kind of large IIUC. It'd be a good idea to look for someone with a slow connection to test this change and make sure we aren't causing needless churn with the timeout reduction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will try to simulate slow connection to see the difference.
Thanks to @wiesche89.