]> git.meshlink.io Git - meshlink/commit
Speed up making outgoing connections.
authorGuus Sliepen <guus@meshlink.io>
Thu, 7 Aug 2014 15:47:58 +0000 (17:47 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 7 Aug 2014 15:47:58 +0000 (17:47 +0200)
commit5809d16e2bc41dbc90358f4324b77482f4ca03de
tree6bf1156d42241af54e33b333d5665b7950f436b7
parent3f6d9a24c1d4c78548bc9dab0e66e2a240a72df7
Speed up making outgoing connections.

- Immediately fire the periodic_handler() when the main loop starts.
- Use a very short timeout if we haven't made enough real and pending
  connections yet to fill the autoconnect budget.

This basically means we immediately start up to 3 outgoing connections
to different nodes.
src/net.c