-
Notifications
You must be signed in to change notification settings - Fork 5
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
[1.0.3 -> main] Test failure: p2p_sync_throttle_test #898
Conversation
[1.0] Test failure: p2p_sync_throttle_test
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.
obviously we need to merge this in now, but seems the tests are all failing
Seems it has exposed a bug in sync wait timeout causing syncing to not continue correctly. I'm looking into it. |
I wonder if spring/plugins/net_plugin/net_plugin.cpp Lines 2190 to 2191 in c431b49
calls spring/plugins/net_plugin/net_plugin.cpp Lines 2200 to 2212 in c431b49
which reassigns the same connection to |
Yes, that is possible in general and since only one connection for this test then it would be the same one. However, I think the issue here is that the throttling node is not sending any blocks after it hits the throttle state. |
How can it not be a problem if we post a request and then immediately after close the connection? |
The connection has not sent a block in an expected timeframe. The response to that is to disconnect. That is our only connection for this test, but regardless, it is the right thing to do. The real bug here is that the node didn't send a block in the expected time frame, see #899. If we close the connection then any pending requests are not sent. |
Note:start |
Resolves #882.
While moving some code around (see here), a call to:
void connection::close(bool reconnect, bool shutdown)
became a call to:
int close(int __fd)
This restores the intended behavior (close the actual connection, instead of closing fd number 1)