Closed Erigara closed 1 month ago
It was observed that iroha consume a lot CPU in idle state, turned out it was due to accidental busy loop in p2p code.
Closes: #5033
Add conditional disabling sending message in Peer even loop when there is no data to be sent to prevent busy loop.
Peer
Context
It was observed that iroha consume a lot CPU in idle state, turned out it was due to accidental busy loop in p2p code.
Closes: #5033
Solution
Add conditional disabling sending message in
Peer
even loop when there is no data to be sent to prevent busy loop.