openmina / openmina

Mina Rust Node
Apache License 2.0
80 stars 19 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 2 months ago

vlad9486 commented 2 months ago

There are three kind of errors happens all the time:

vlad9486 commented 2 months 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.