nervosnetwork / tentacle

A multiplexed p2p network framework that supports custom protocols
https://docs.rs/tentacle
MIT License
54 stars 24 forks source link

feat: reuse address by default #356

Closed driftluo closed 2 years ago

driftluo commented 2 years ago

we introduce tcp config on https://github.com/nervosnetwork/tentacle/pull/339 ,but it remove default feature reuse_addr on https://github.com/tokio-rs/mio/blob/master/src/net/tcp/listener.rs#L74, cause some unexpected behavior, so we add it back now, user can disable it on their own tcp config

ref https://github.com/nervosnetwork/ckb/runs/6985034924?check_suite_focus=true