nim-libp2p/tests/pubsub
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
..
testfloodsub.nim Gossipsub refactor (#490) 2020-12-19 15:43:32 +01:00
testgossipinternal.nim Connection limits (#384) 2021-01-20 22:00:24 -06:00
testgossipsub.nim Gossipsub wip (#502) 2021-01-15 13:48:03 +09:00
testmcache.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
testmessage.nim allow to omit peerId and seqno (#372) 2020-09-23 17:56:33 +02:00
testpubsub.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
testtimedcache.nim fix poor performance in LRU cache (#360) 2020-09-09 18:28:46 +02:00
utils.nim Gossipsub refactor (#490) 2020-12-19 15:43:32 +01:00