-
Notifications
You must be signed in to change notification settings - Fork 983
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
Fix Issues With Peer Handshakes #5799
Conversation
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.
LGTM.
Couple of minor things (feel free to ignore):
- magic constants (like 10sec to wait for peer to handshake, 50 seconds to flush the stream)
- not sure if
repeatPeerConnections
is used anywhere. It is declared inmonigoring.go
and then incremented, but not sure whether its data is used anywhere.
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.
I realize the usual lack of tests for p2p related handles, is this another instance that's due to libp2p?
…eth-sharding into improveHandshake
…eth-sharding into improveHandshake
@farazdagi alright changed it so as to declare them as constants first. Although I am not sure on this point.
This is for our prometheus metrics collection, it usually isn't used anywhere else. @terencechain Yeap this is a bit complicated to do, as there as many moving parts to this. The handshake process involves code from |
Codecov Report
@@ Coverage Diff @@
## master #5799 +/- ##
==========================================
+ Coverage 59.75% 59.83% +0.07%
==========================================
Files 311 311
Lines 26148 26108 -40
==========================================
- Hits 15626 15621 -5
+ Misses 8392 8358 -34
+ Partials 2130 2129 -1 |
What type of PR is this?
Bug Fix
What does this PR do? Why is it needed?
to send their status request and then appropriately responding.
Which issues(s) does this PR fix?
Fixes #5741 #5796
Other notes for review