Giovanni Petrantoni
0d81acafa8
Fix multistream select trace proto logging
2020-06-16 12:02:47 +09:00
Dmitriy Ryajov
9d9f793b4f
add metrics for sent messages by topic and peer ( #220 )
2020-06-15 17:39:03 -06:00
Dmitriy Ryajov
3c4c10d871
con't crash on nil ptr
2020-06-15 13:37:25 -06:00
Dmitriy Ryajov
7cb6c81159
Don't modify iterables while iterating them ( #219 )
...
* don't modify iterables while iterating
* assert handlers to properly close connections
2020-06-15 12:30:09 -06:00
Dmitriy Ryajov
9cd47fe816
add a logScope to make tracing less ugly ( #218 )
...
* add a logScope to make tracing less ugly
* don't crash on nil pointer
2020-06-15 12:10:41 -06:00
Dmitriy Ryajov
85b56d0b3a
Observedaddr ( #217 )
...
* send correct observerAddr
* run tests with info log level
* set observedaddr for channels
2020-06-12 19:56:17 -06:00
Oskar Thorén
f97e2deec7
Make methods in FloodSub, GossipSub public ( #216 )
...
Similar to https://github.com/status-im/nim-libp2p/pull/193 but doing it for all
methods to avoid this issue in PubSub in the future. Got hit by this behavior
again in rpcHandler and took me a while to figure out.
See https://github.com/oskarth/nim-private-method-skipping-case/ for minimal
repro
2020-06-12 17:54:12 -06:00
Dmitriy Ryajov
ac04ca6e31
make sure keys exist and more metrics ( #215 )
2020-06-11 20:20:58 -06:00
Dmitriy Ryajov
55a294a5c9
better pubsub metrics ( #214 )
2020-06-11 12:09:34 -06:00
Dmitriy Ryajov
6b196ad7b4
remove pubsub peer on disconnect ( #212 )
...
* remove pubsub peer on disconnect
* make sure lock is aquired
* add $
* count upgrades/dials/disconnects
2020-06-11 08:45:59 -06:00
Jacek Sieka
92579435b6
secio then noise ( #213 )
...
* secio then noise
much fewer peers on witti with noise first
* comment
2020-06-11 08:38:47 +02:00
Viktor Kirilov
1afec627c2
proper name for topics so that we can filter dynamically using chronicles ( #210 )
...
* proper name for topics so that we can filter dynamically using chronicles
* lowercase
2020-06-10 10:48:01 +02:00
Jacek Sieka
8d9e231a74
grab agentversion/protoversion ( #211 )
2020-06-09 12:42:52 -06:00
Dmitriy Ryajov
35ff99829e
close streams ( #208 )
...
* close streams
* don't warn on missing proto
2020-06-08 17:42:27 -06:00
Dmitriy Ryajov
ee281310c0
move trace log
2020-06-08 10:40:08 -06:00
Giovanni Petrantoni
82b4ed8f44
use declareCounter rather then gauge for certain metrics
2020-06-07 16:41:23 +09:00
Giovanni Petrantoni
a6a2a81711
Start adding some metrics to pubsub ( #192 )
...
* Start adding some metrics to pubsub
In order to visualize it's functionality
Still WIP
* more metrics
* add per topic metrics
* finishup with requested metrics
* add a metrisServer define to start local server
* PR fixes and cleanup
2020-06-07 09:15:21 +02:00
Dmitriy Ryajov
130c64f33a
don't return nil in dial ( #205 )
...
* dont return nil in dial
* don't crash on pubsub send
2020-06-05 18:17:05 -06:00
Zahary Karadjov
2aebae56c0
Don't rely on the side-effects from doAssert
2020-06-05 19:12:10 +03:00
Zahary Karadjov
828a80ec8f
Make the MultiAddress.init function used in NBC non-failing
2020-06-05 17:51:22 +03:00
Dmitriy Ryajov
5960d42c50
remove casts from ( #203 )
2020-06-02 20:21:11 -06:00
Dmitriy Ryajov
bb8bff2195
add sparse message propagation tests to gossipsub ( #202 )
...
* add sparce tests to gossipsub
* add send hooks
* remove `all`
2020-06-02 17:53:38 -06:00
Dmitriy Ryajov
285884c20c
Close peers ( #201 )
...
* wip
* exceptions and resource cleanup
* correct peerlifetime on disconnect
* emulate defered
* remove comment
2020-06-02 11:32:42 -06:00
Dmitriy Ryajov
c7298f34f4
additional comments
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
abbb50ae34
add leaks tests
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
71640da8f2
remove close from read/write methods
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
1b4876d26d
emulate `defered`
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
abf659a01a
more consistent dialing proto selecting logic
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
4c191866e4
use all() for futures and track connections
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
86e1c8169c
decorate observers hooks with {.raises: [Defect].}
...
move hooks logic out into standalone procs
License: MIT
Signed-off-by: Dmitriy Ryajov <dryajov@gmail.com>
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
4df151a3a3
typos
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
27a7f8c948
move EOF flag after local close and comments
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
815282a5da
remove all()
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
293b7da295
typo
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
a4277cf39a
test for openned/closed resource
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
6e0eb93d4f
remove readloops
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
abc12d0fb5
move stram close to a better location
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
daef00fc7b
don't crash schlesi-dev
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
20c68a2018
use all() for futures and track connections
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
640c3bdc45
better exception handling and resource cleanup
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
7ff76d76b6
better exceptions
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
95774b2b81
better cleanup
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
9c2f31262e
wip: try handling child stream exceptions
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
e3f8f53620
initStream method and better exceptions handling
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
d3b79b002e
better exceptions and don't fail writes
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
74f8b5b5f1
resource cleanup
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
93e5805c01
better exception handling
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
d83ce4c932
exceptions and resource cleanup
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
d4bdb42046
gossipsub fixes
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
6112de746d
remove unneeded changes
2020-06-02 09:10:27 -06:00