nim-libp2p/tests
Dmitriy Ryajov 0959877b29
Connection limits (#384)
* master merge

* wip

* avoid deadlocks

* tcp limits

* expose client field in chronosstream

* limit incoming connections

* update with new listen api

* fix release

* don't override peerinfo in connection

* rework transport with accept

* use semaphore to track resource ussage

* rework with new transport accept api

* move events to conn manager (#373)

* use semaphore to track resource ussage

* merge master

* expose api to acquire conn slots

* don't fail expensive metrics

* allow tracking and updating connections

* set global connection limits to 80

* add per peer connection limits

* make sure conn is closed if tracking failed

* more descriptive naming for handle

* rework with new transport accept api

* add `getStream` hide `selectConn`

* add TransportClosedError

* make nil explicit

* don't make unnecessary copies of message

* logging

* error handling

* cleanup semaphore

* track connections properly

* throw `TooManyConnections` when tracking outgoing

* use proper exception and handle conventions

* check onCloseHandle for nil

* revert internalConnect changes

* adding upgraded flag

* await stream before closing

* simplify tracking

* wip

* logging

* split connection limits into incoming and outgoing

* further streamline connection limits split counts

* don't use closeWithEOF

* move peer and conn event triggers from switch

* wip

* wip

* wip

* merge master

* handle nil connections properly

* add clarifying comment

* don't raise exc on nil

* no finally

* add proper min/max connections logic

* rebase master

* merge master

* master merge

* remove request timeout

should be addressed in separate PR

* merge master

* share semaphore when in/out limits arent enforced

* merge master

* use import

* pass semaphore to trackConn

* don't close last conn

* use storeConn

* merge master

* use storeConn
2021-01-20 22:00:24 -06:00
..
pubsub Connection limits (#384) 2021-01-20 22:00:24 -06:00
helpers.nim make switch tests less sensitive to time (#501) 2021-01-12 10:26:48 +09:00
nim.cfg Tests are now testing with --threads:on. 2019-11-06 13:01:16 +02:00
testbufferstream.nim Don't allow concurrent pushdata (#444) 2020-11-23 09:07:11 -06:00
testcid.nim first pass, use results for Cid module (#480) 2020-12-15 14:19:18 +01:00
testconnection.nim Cleanup tests (#435) 2020-11-12 21:44:02 -06:00
testconnmngr.nim Connection limits (#384) 2021-01-20 22:00:24 -06:00
testcrypto.nim Audit curve fixes part2 (#298) 2020-08-04 18:19:26 +09:00
testdaemon.nim Peer resultification and defect only (#245) 2020-07-01 08:25:09 +02:00
testecnist.nim reuse single RNG instance for all crypto key generation (#249) 2020-07-07 13:14:11 +02:00
tested25519.nim reuse single RNG instance for all crypto key generation (#249) 2020-07-07 13:14:11 +02:00
testidentify.nim Allow custom identify agent string (#451) 2020-11-25 07:42:02 -06:00
testinterop.nim Gossipsub refactor (#490) 2020-12-19 15:43:32 +01:00
testminasn1.nim Refactor minasn1 and fix security issues. (#323) 2020-08-11 16:58:51 -06:00
testminprotobuf.nim Minprotobuf refactoring 2 (#269) 2020-07-15 10:25:39 +02:00
testmplex.nim Race in connection setup (#464) 2020-12-02 19:24:48 -06:00
testmultiaddress.nim Less exceptions more results (#188) 2020-05-31 16:22:49 +02:00
testmultibase.nim Less exceptions more results (#188) 2020-05-31 16:22:49 +02:00
testmultihash.nim Crypto utilities resultification (#150) 2020-05-18 07:25:55 +02:00
testmultistream.nim Rework transport to use chronos accept (#420) 2020-11-18 20:06:42 -06:00
testnative.nim Concurrent upgrades (#489) 2021-01-04 12:59:05 -06:00
testnoise.nim Rework transport to use chronos accept (#420) 2020-11-18 20:06:42 -06:00
testpeerid.nim clean up peerid (#470) 2020-12-03 13:53:16 -06:00
testpeerinfo.nim peer hooks -> events (#320) 2020-08-08 08:52:20 +02:00
testpkifilter.nim Public key infrastructure filters. (#272) 2020-07-21 14:10:21 -06:00
testrsa.nim Fix #266. (#270) 2020-07-15 10:24:04 +02:00
testsecp256k1.nim reuse single RNG instance for all crypto key generation (#249) 2020-07-07 13:14:11 +02:00
testsemaphore.nim Semaphore cancellations (#503) 2021-01-14 10:11:12 +01:00
teststreamseq.nim remove readLoop in secure protocols (#162) 2020-05-07 14:37:46 -06:00
testswitch.nim make switch tests less sensitive to time (#501) 2021-01-12 10:26:48 +09:00
testtransport.nim Connection limits (#384) 2021-01-20 22:00:24 -06:00
testvarint.nim Fixing range error introduces in v1.2.8 (#485) 2020-12-15 06:58:38 +01:00