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
Dmitriy Ryajov
9d3cc9647b
fix merge
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
5f704e6825
rust interop fixes
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
8e48bb117d
rebasing master
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
77017d1e7e
inc count before closing
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
3d9c0bffba
read from stream
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
048b1db1ad
revert back allread
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
8e9716f5c3
remove on transport close cleanup
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
8963c2d0ed
fixes after backporting
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
bfe84816ac
don't reraise just yet
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
cf76edb0dd
make noise work again
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
87e1cf924f
don't use read
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
5158d96eaf
close connection on chronos close
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
46daed9a38
wip
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
0f691cbafd
add eof and closed handling
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
62da2a05c3
wip: rework with proper half-closed
2020-06-02 09:10:27 -06:00
Dmitriy Ryajov
98117a3068
call write until all is written out
2020-06-02 09:10:27 -06:00