nim-libp2p/libp2p
Dmitriy Ryajov b2ea5a3c77
Concurrent upgrades (#489)
* adding an upgraded event to conn

* set stopped flag asap

* trigger upgradded event on conn

* set concurrency limit for accepts

* backporting semaphore from tcp-limits2

* export unittests module

* make params explicit

* tone down debug logs

* adding semaphore tests

* use semaphore to throttle concurent upgrades

* add libp2p scope

* trigger upgraded event before any other events

* add event handler for connection upgrade

* cleanup upgraded event on conn close

* make upgrades slot release rebust

* dont forget to release slot on nil connection

* misc

* make sure semaphore is always released

* minor improvements and a nil check

* removing unneeded comment

* make upgradeMonitor a non-closure proc

* make sure the `upgraded` event is initialized

* handle exceptions in accepts when stopping

* don't leak exceptions when stopping accept loops
2021-01-04 12:59:05 -06:00
..
crypto Rm bearssl + Deactivate Travis completely (#477) 2020-12-10 14:19:27 +01:00
daemon Rework transport to use chronos accept (#420) 2020-11-18 20:06:42 -06:00
muxers streamline socket read/write hot path (#473) 2020-12-09 08:56:40 -06:00
protobuf Add `libp2p_dump` and `libp2p_dump_dir` compiler time options. (#359) 2020-09-15 11:16:43 +02:00
protocols Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
stream Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
transports Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
utils Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
cid.nim first pass, use results for Cid module (#480) 2020-12-15 14:19:18 +01:00
connmanager.nim Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
debugutils.nim fix debugutils (#423) 2020-11-04 19:56:28 -06:00
errors.nim warn -> debug log levels in errors.nim 2020-08-20 16:53:28 +09:00
multiaddress.nim use stew/leb128 (#481) 2020-12-15 12:15:22 -06:00
multibase.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
multicodec.nim Crypto utilities resultification (#150) 2020-05-18 07:25:55 +02:00
multihash.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
multistream.nim adding libp2p tag to logScope (#465) 2020-12-01 11:34:27 -06:00
peerid.nim clean up peerid (#470) 2020-12-03 13:53:16 -06:00
peerinfo.nim simplify and unify logging (#353) 2020-09-06 10:31:47 +02:00
standard_setup.nim mplex fixes (#362) 2020-09-14 10:19:54 +02:00
switch.nim Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
transcoder.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
utility.nim Less verbose traces (#112) 2020-03-23 15:03:36 +09:00
varint.nim use stew/leb128 (#481) 2020-12-15 12:15:22 -06:00
vbuffer.nim use stew/leb128 (#481) 2020-12-15 12:15:22 -06:00
wire.nim Rework transport to use chronos accept (#420) 2020-11-18 20:06:42 -06:00