-
Notifications
You must be signed in to change notification settings - Fork 71
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
[4.0] Correctly handle close while syncing #1171
Conversation
} | ||
return; | ||
} | ||
|
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.
Note this was already removed on main as an optimization. See #1045.
plugins/net_plugin/net_plugin.cpp
Outdated
@@ -1591,7 +1591,7 @@ namespace eosio { | |||
sync_known_lib_num = highest_lib_num; | |||
|
|||
// if closing the connection we are currently syncing from, then reset our last requested and next expected. |
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.
Can you update this comment?
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.
Updated
When generating snapshots during syncing, nodeos would timeout a sync and close the connection. The close would cause all queued blocks on that connection to be dropped. Also the
sync_next_expected_num
would not be reset because thesync_source
had been reset.Resolves #1170