686 Commits

Author SHA1 Message Date
Dmitriy Ryajov
5d7b6cb7e9
use all() for futures and track connections 2020-06-01 12:18:19 -06:00
Dmitriy Ryajov
58f43926fe
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-01 12:14:38 -06:00
Dmitriy Ryajov
132f0d7ee4
typos 2020-06-01 12:14:38 -06:00
Dmitriy Ryajov
7e8f0510d6
move EOF flag after local close and comments 2020-06-01 12:14:37 -06:00
Dmitriy Ryajov
ead8b4a75c
remove all() 2020-06-01 12:14:37 -06:00
Dmitriy Ryajov
f4482b1601
typo 2020-06-01 12:14:37 -06:00
Dmitriy Ryajov
abebe8d6d1
test for openned/closed resource 2020-06-01 12:14:35 -06:00
Dmitriy Ryajov
ff9d2c55b4
remove readloops 2020-06-01 12:14:20 -06:00
Dmitriy Ryajov
353c0f3280
move stram close to a better location 2020-06-01 12:14:20 -06:00
Dmitriy Ryajov
5432a41f14
don't crash schlesi-dev 2020-06-01 12:14:20 -06:00
Dmitriy Ryajov
c19785d40d
use all() for futures and track connections 2020-06-01 12:14:18 -06:00
Dmitriy Ryajov
432e7bc4a7
better exception handling and resource cleanup 2020-06-01 12:14:00 -06:00
Dmitriy Ryajov
bf183d061b
better exceptions 2020-06-01 12:14:00 -06:00
Dmitriy Ryajov
fcde203ba9
better cleanup 2020-06-01 12:14:00 -06:00
Dmitriy Ryajov
29e166a733
wip: try handling child stream exceptions 2020-06-01 12:13:59 -06:00
Dmitriy Ryajov
fd2f3bc7aa
initStream method and better exceptions handling 2020-06-01 12:13:59 -06:00
Dmitriy Ryajov
5b03e17123
better exceptions and don't fail writes 2020-06-01 12:13:59 -06:00
Dmitriy Ryajov
b9b20b7c61
resource cleanup 2020-06-01 12:13:58 -06:00
Dmitriy Ryajov
66ab83734c
better exception handling 2020-06-01 12:13:58 -06:00
Dmitriy Ryajov
4a849f8ec3
exceptions and resource cleanup 2020-06-01 12:13:58 -06:00
Dmitriy Ryajov
08712e810e
gossipsub fixes 2020-06-01 12:13:58 -06:00
Dmitriy Ryajov
debf1ca219
remove unneeded changes 2020-06-01 12:13:57 -06:00
Dmitriy Ryajov
2a8fa3291f
fix merge 2020-06-01 12:13:57 -06:00
Dmitriy Ryajov
c0d4b31f05
rust interop fixes 2020-06-01 12:13:57 -06:00
Dmitriy Ryajov
fecaeecf57
rebasing master 2020-06-01 12:13:57 -06:00
Dmitriy Ryajov
94d4f98ee8
inc count before closing 2020-06-01 12:13:56 -06:00
Dmitriy Ryajov
fa7d69b973
read from stream 2020-06-01 12:13:56 -06:00
Dmitriy Ryajov
6827cf9b61
revert back allread 2020-06-01 12:13:56 -06:00
Dmitriy Ryajov
f5c871518e
remove on transport close cleanup 2020-06-01 12:13:56 -06:00
Dmitriy Ryajov
3d6961e2a8
fixes after backporting 2020-06-01 12:13:55 -06:00
Dmitriy Ryajov
b6dd406d85
don't reraise just yet 2020-06-01 12:13:55 -06:00
Dmitriy Ryajov
631546c2b5
make noise work again 2020-06-01 12:13:55 -06:00
Dmitriy Ryajov
51611c9a27
don't use read 2020-06-01 12:13:53 -06:00
Dmitriy Ryajov
40aef3ffa5
close connection on chronos close 2020-06-01 12:13:28 -06:00
Dmitriy Ryajov
e4b2018522
wip 2020-06-01 12:13:28 -06:00
Dmitriy Ryajov
8ca1027ef9
add eof and closed handling 2020-06-01 12:13:28 -06:00
Dmitriy Ryajov
e876a16062
wip: rework with proper half-closed 2020-06-01 12:13:27 -06:00
Dmitriy Ryajov
2d1b05e827
call write until all is written out 2020-06-01 12:13:27 -06:00
Dmitriy Ryajov
42ae8589fb
breakout from publish loop 2020-06-01 12:13:27 -06:00
Jacek Sieka
7e31210455
cover missing case in MultiAddress.init (#198)
* cover missing case in MultiAddress.init

* raise assert on marker in protocol

* unify inits for markers / non-markers

* fix string
2020-06-01 14:41:45 +02:00
Jacek Sieka
88dbeebf17
add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
Giovanni Petrantoni
37b98ad45c
Secure managers are now sorted, giving priority to noise (#191)
* Secure managers are now sorted, giving priority to noise

* fix nimble test command

* Fix native tests

* fix directchat sample

* Could not write to connection - reduce verbosity

* fix interop testing

* Remove more tables

* test interop fixes

* directchat fix

* fix interop/remove some deprecation
2020-06-01 08:41:32 +02:00
Giovanni Petrantoni
6affcda937
Less exceptions more results (#188)
* Less exceptions more results

* Fix daemonapi and interop tests

* Add multibase

* wip multiaddress

* fix the build, consuming new result types

* fix standard setup

* Simplify match, rename into MaError, add more exaustive err text

* Fix the CI issues

* Fix directchat build

* daemon api fixes

* better err messages formatting

Co-authored-by: Zahary Karadjov <zahary@gmail.com>
2020-05-31 16:22:49 +02:00
Giovanni Petrantoni
7c9e5c2f7a "Could not write to connection" message split between trace and debug due to log size 2020-05-30 23:47:56 +09:00
Oskar Thorén
b88bfc05f8
Make GossipSub initPubSub method public (#193)
This means we can use it from other protocols that inherit GossipSub. Otherwise,
a lot of internal state (heartbeat lock etc) doesn't get initialized properly.
2020-05-29 09:35:03 -06:00
Dmitriy Ryajov
7b6e1c0688
Gossipsub interop (#189)
* interop fixes

* add custom messageid provider and fix seqno

* use ECDSA for speed

* adding messageid tests

* breakout from publish loop

* addressing review comments

* remove unneded var

* dont stop broadcasting on failed peers
2020-05-27 12:33:49 -06:00
Giovanni Petrantoni
536555138c fix "future" typo 2020-05-26 16:08:09 +09:00
Giovanni Petrantoni
4447d97234 add back forgotten message in tryAndWarn 2020-05-26 15:21:59 +09:00
Dmitriy Ryajov
9132f16927
gossipsub fixes (#186) 2020-05-21 14:24:20 -06:00
Dmitriy Ryajov
ba53c08b3c
Track incoming connections (#181)
* call write until all is written out

* wip: rework with proper half-closed

* add eof and closed handling

* wip

* close connection on chronos close

* don't use read

* make noise work again

* don't reraise just yet

* fixes after backporting

* remove on transport close cleanup

* revert back allread

* rust interop fixes

* read from stream

* inc count before closing

* rebasing master

* store incomming connections

* fix merge

* remove unneeded changes

* use internal close flag to indicate disposal
2020-05-21 11:33:48 -06:00