This is the last PR with some left over improvements and small fixes to ensure that the Mysticeti codebase will perform in accordance to our so far tests.
More specifically it is:
increasing the network channel size to allow more message buffering
ask for permit when trying to send a pong message and drop if channel full to avoid blocking the network loop
ensure that RequestBlocks request is not asking for more than MAXIMUM_BLOCK_REQUEST elements. This is fixing a bug that was causing the connections to break as there is a peer check to ensure that no more MAXIMUM_BLOCK_REQUEST elements are requested
do not filter out peers with latency > 2 seconds on the synchronizer, as this could lead to potential liveness issues and is not really needed for now
break network connection when latency is higher than CUT_OFF_LATENCY
This is the last PR with some left over improvements and small fixes to ensure that the Mysticeti codebase will perform in accordance to our so far tests.
More specifically it is:
RequestBlocks
request is not asking for more thanMAXIMUM_BLOCK_REQUEST
elements. This is fixing a bug that was causing the connections to break as there is a peer check to ensure that no moreMAXIMUM_BLOCK_REQUEST
elements are requestedCUT_OFF_LATENCY