nim-libp2p/libp2p/protocols/secure
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
..
noise.nim simplify noise frame construction (#478) 2020-12-16 13:10:06 +01:00
plaintext.nim Cleanup lpstream, Connection and BufferStream (#228) 2020-06-19 11:29:43 -06:00
secio.nim adding libp2p tag to logScope (#465) 2020-12-01 11:34:27 -06:00
secure.nim Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00