mafintosh / peer-wire-swarm

swarm implementation for bittorrent
MIT License
80 stars 18 forks source link

More aggressive reconnect_wait #14

Closed Ivshti closed 9 years ago

Ivshti commented 9 years ago

A reconnect wait like this is very negative behaviour - it leads to peers which are un-available being tried over and over again, taking up slots for new connections.

It's pretty safe to assume that if a peer fails the re-connect three times, it's not going to succeed in general. Better try new connections than keep re-trying.

mafintosh commented 9 years ago

Sounds reasonable! 0.11.0