openmina / openmina

Mina Rust Node
Apache License 2.0
78 stars 18 forks source link

As a developer, I want to fix runtime errors in p2p so that the node is nicer with peers #709

Open vlad9486 opened 1 month ago

vlad9486 commented 1 month ago

There are three kind of errors happens all the time:

vlad9486 commented 1 month ago

Fixed mio service to deregister connection on epoll as disconnect.

Added P2pPeerStatus::Disconnecting case to track connection where disconnect is in progress.

Try to postpone removing connection state in network state machine until connection is disconnected on mio service.

vlad9486 commented 1 month ago

Fixed bugs related to disconnection. Pass all tests.