nebulasio / go-nebulas

Official Go implementation of the Nebulas protocol.
https://nebulas.io
GNU Lesser General Public License v3.0
712 stars 203 forks source link

send p2p message in nebulas should add retry strategy #28

Closed LeonLi000 closed 6 years ago

LeonLi000 commented 6 years ago

we implemented send p2p message method in nebulas.

SendMsg(name string, msg []byte, target string)

but we are supposed to give a retry strategy when send message failed. when we download the block from a node, we hope the sooner the better. in this case, we hope to try again when we fail. so we should add retry strategy in nebulas p2p network.

fbzhong commented 6 years ago

The retry algorithm is about Connection Reconnecting and Message Resending. Let's close this issue and submit new issue to discuss Reconnecting strategy and Message resending.