Marco Munizaga
4b2b3752c7
fix: use the correct x509 version ( #196 )
* Use the correct x509 version
* fix: supress useless clang-tidy warnings about narrowing conversion
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Co-authored-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
2 years ago
Piotr Olszewski
0cf9827b40
fix: prevent segmentation fault when receiving empty protobuf message ( #199 ) ( #200 )
Fix to prevent segmentation fault when receiving empty protobuf message by checking if returned
shared pointer contains null and if so, just calling the callback.
2 years ago
dependabot[bot]
563403ca54
Bump github.com/libp2p/go-libp2p in /example/01-echo ( #198 )
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p ) from 0.8.1 to 0.18.0.
- [Release notes](https://github.com/libp2p/go-libp2p/releases )
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.8.1...v0.18.0 )
---
updated-dependencies:
- dependency-name: github.com/libp2p/go-libp2p
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
0af4c76602
Bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 in /example/01-echo ( #181 )
Bumps [github.com/gogo/protobuf](https://github.com/gogo/protobuf ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/gogo/protobuf/releases )
- [Commits](https://github.com/gogo/protobuf/compare/v1.3.1...v1.3.2 )
---
updated-dependencies:
- dependency-name: github.com/gogo/protobuf
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Dmitriy Khaustov
5e13b979ea
Remove unused 'ls' command ( #194 )
* update: update hunter hub
* fix: remove deprecated command 'ls'
* fix: clang-tidy issues
* fix: clang-tidy issues
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
2 years ago
libp2p-mgmt-read-write[bot]
d205cb5337
chore: Update .github/workflows/stale.yml [skip ci]
2 years ago
Ruslan Tushov
abd4e00656
remove assert in yamux ( #193 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Ruslan Tushov
48f3457dd7
Fix kademlia ( #191 )
Signed-off-by: ortyomka <iurin.art@gmail.com>
Co-authored-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Ruslan Tushov
6cab799394
Protocol select ( #189 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Harrm
552202d5bb
Hotfix TCP socket leakage ( #188 )
TCP Connections are stored in shared ptrs and are leaking somewhere, so that when some errors happens while establishing a connection we might end up in a situation when we don't hold any references to the connection in the client code, but the socket for this connection is still open. This can easily lead to open sockets piling up to the point where the process is killed due to running out of file descriptors. This patch closes the socket on error, however the TcpConnection objects will still remain in memory, which will have to be fixed with more based refactoring.
2 years ago
Igor Egorov
2970185c8b
Let x-parity-ws/wss multiaddrs to be constructed ( #186 )
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
2 years ago
Ruslan Tushov
c116cef987
Remove old scheduler ( #184 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
GaroRobe
ec24488400
Fix of null iterator ( #182 )
Co-authored-by: Artem Ponomarev <ponomarev@soramitsu.co.jp>
2 years ago
Igor Egorov
890b53dd73
Add interface for prehashed messages to ECDSA provider ( #179 )
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
3 years ago
Harrm
69299a8182
Add CMake installation config ( #176 )
* Add libp2p installation config
* Fix protobuf in debug builds
3 years ago
GaroRobe
533d4a7f99
Updated Hunter version for M1 support ( #175 )
* Updated Hunter version for M1 support
Signed-off-by: Artem Ponomarev <ponomarev@soramitsu.co.jp>
3 years ago
andregri
9005eee203
Fix cmake clang format ( #173 )
* fix bad directory name of source files
* add explicit option for using .clang-format file
* fix Clang Tidy CI check
3 years ago
Igor Egorov
e13f051eb5
Noise::write now reports the correct amount of bytes ( #99 )
* Noise::write now reports the correct amount of bytes
* Fix data handling in Noise::read() & Noise::readSome()
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
3 years ago
Dmitriy Khaustov
c904db6c5f
Reorganize 'event' namespaces ( #171 )
*refactoring: reorganize 'event' namespaces
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
3 years ago
Igor Egorov
c97b3959e7
Fix Dialer ( #170 )
* Fix dialer to establish only one outgoing connection by peer
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
3 years ago
Dmitriy Khaustov
eaa37aab24
Fix of exposing mock classes ( #169 )
*fix: mocks
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
3 years ago
Ruslan Tushov
b6de6a91ee
sha ( #165 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
3 years ago
Ruslan Tushov
91d58f28bb
update hunter, fix protobuf ( #163 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
3 years ago
Alexey
6ee8c98862
PeerContext is used after being deleted, keep shared pointer to it. ( #161 )
Signed-off-by: Alexey-N-Chernyshov <alexey.n.chernyshov@gmail.com>
3 years ago
Florian Franzen
7c9d83bf07
tests: add missing cares dep to net injector test ( #142 )
3 years ago
Florian Franzen
6274fece12
p2p_logger: remove already propagated dependency on yaml-cpp ( #141 )
3 years ago
Ruslan Tushov
45dbf9c403
sign gossip messages ( #160 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
3 years ago
Ruslan Tushov
04faee4602
remove gossip multi-topic ( #159 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
3 years ago
Alexey
d65618c33b
multihash-and-fixes - Updated ( #158 )
* multihash holds sptr to const data for performance
* multihash updates for performance
* iterator-related bugs in peer routing table fixed
* fix pr issues
Signed-off-by: Alexey-N-Chernyshov <alexey.n.chernyshov@gmail.com>
Co-authored-by: Artem <artgor4github@gmail.com>
Co-authored-by: Igor Egorov <igor@soramitsu.co.jp>
3 years ago
Alexey
7b4ee1f22a
Replace protocol::common::Scheduler with basic::Scheduler in kademlia ( #157 )
Signed-off-by: Alexey-N-Chernyshov <alexey.n.chernyshov@gmail.com>
3 years ago
Dmitriy Khaustov
e248689bdb
Fix trace log msg ( #155 )
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
3 years ago
kamilsa
f56d103055
Update ci.yml ( #156 )
3 years ago
Igor Egorov
c56fb58cf2
Let varint reader propagate the error ( #152 )
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
3 years ago
Ruslan Tushov
30f59b8698
metrics ( #149 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
3 years ago
kamilsa
c7cf022605
Revert "Temporary workaround in loopback stream to allow kagome finalize blocks ( #150 )" ( #151 )
The workaround is no more needed.
This reverts commit 393119ee18
.
3 years ago
Igor Egorov
393119ee18
Temporary workaround in loopback stream to allow kagome finalize blocks ( #150 )
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
3 years ago
art-gor
2de082a0e8
Gossip self cleanup ( #140 )
* gossip: moved to new scheduler and chrono::milliseconds
* minor update in address repo impl
* gossip update WIP (peer ctx expiration)
* gossip forgetting peers
* gossip updating addresses in repo
* hotfix about improper reschedulting in gossip core
* lowered log level of yamux ping messages sending
* review-related minor changes
* gossip: lazy protobuf serializing and deep cleanup
* sublogger fix
* memory stabilizing changes in gossip
* little fix due to merge
* clang-tidy vs gsl::span + remove something ambigous in yamuxed connection
* abandoned streams rst and cleanup in yamuxed connections
* another gsl::span vs clang-tidy delivery delay
3 years ago
Artem Iurin
7ef167cf56
Fix size_t problem ( #145 )
* Using std::size_t
Signed-off-by: ortyomka <iurin.art@gmail.com>
4 years ago
Dmitriy Khaustov
d51a7f7d62
Provide default logger group explicitly ( #143 )
* feature: using default group explicitly
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
4 years ago
art-gor
846a881547
non-reentrant dialer, all dialer tests enabled ( #137 )
4 years ago
art-gor
fb9e3901b4
Hotfix/old sch and construction ( #139 )
* trying to fix injector-based construction of old asio scheduler
* fix injector-based construction of old asio scheduler #2
4 years ago
art-gor
c9fb624371
workaround in old scheduler due to possible lifetime issues ( #135 )
4 years ago
art-gor
2ea76cd4b4
Connections anti-leak measures ( #136 )
* error codes for connections and streams are part of interfaces
* yamux and build-in ping
* host is explicitly stopped in test
* added expire timer for yamux connection
* fixes in event bus
* feedback on connections close
* cyclic dependencies resolved, connectedness is a function of Host
* bugfixes in yamux creation
* minor format fixes
* post-review corrections
4 years ago
art-gor
a8d9f98cd7
Error codes updated ( #134 )
* error codes for connections and streams are part of interfaces
* test corrected
* Update src/connection/error_codes.cpp
Co-authored-by: Igor Egorov <igor@soramitsu.co.jp>
Co-authored-by: Igor Egorov <igor@soramitsu.co.jp>
4 years ago
art-gor
0aacd5d20c
New Scheduler ( #127 )
* new scheduler: WIP
* macro args corrected in outcome.hpp
* little fixes of occasional bulk rename
* more precise use of scheduler threshold
* explanations added to scheduler test
* build fix for macos
* corrections
4 years ago
art-gor
cd477423a4
avoid heavy usage of hardware RNG for non-cryptographic task ( #132 )
4 years ago
art-gor
c76b5f091e
Outbound streams optimistic creation ( #131 )
* yamux connection sends window update msg on new outbound streams
* optimistic outbound stream creation added
* fix
4 years ago
Igor Egorov
47c40b2a08
Use updated Hunter with soralog 0.0.5 ( #129 )
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
4 years ago
Igor Egorov
75eb8b2736
Move LoopbackStream from Kagome ( #124 )
* Move LoopbackStream from Kagome, add test
* Install Loopbackstream target
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
4 years ago
Dmitriy Khaustov
5ddc91034e
Configure logging for testutil ( #128 )
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
4 years ago