Closed billiegoose closed 5 months ago
@mafintosh - this works... ish. But it would probably work even better if we pessimistically began reconnecting to peers right away, then aborted the reconnecting if it turned out the connections were still alive. Got any ideas how to do that?
Lets land this for now, making the call non optional
For funsies I'm gonna test it real quick
Eh, my LAN connections are still so slow I can't really measure an improvement. But I have a really hard time imagining this could have a detrimental unforeseen result so I feel safe to merge it.
I can't see any difference with or without this change. Still seems like an ungodly long time (5-8 seconds) between
NETWORK CHANGE
and...stream-close
.Can anyone else confirm / deny ?
Testing using my
test/manual/measure-reconnect.js
script and switching networks. Note: I've even tried commenting out theconn.setKeepAlive(5000)
line intest/manual/measure-reconnect.js
to try and give this PR every advantage.