holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.06k stars 85 forks source link

Max parallel client connections #99

Closed mafintosh closed 2 years ago

mafintosh commented 2 years ago

Adds maxParallel for client connections (set to a conversative 3, but can be tweaked later)

Also tweaks the client queue drain, so that it is called more often. Atm it could stop draining, if the queue was not drained due to maxConnections being hit, and not called again on connection close.

I'll try to make a test for that