David Cheeseman
cbed516501
Corrected Hunter link in README ( #251 )
5 months ago
Ruslan Tushov
2e375280e1
qtils ( #249 )
- outcome
- hex, unhex
- lexicographical_compare_three_way
- optionTake
- append, bytestr
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
5 months ago
Ruslan Tushov
c3192062c7
tsan weak_from_this race ( #248 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
6 months ago
Ruslan Tushov
4caaa47ae5
fix optional (assign not working) ( #246 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
6 months ago
Ruslan Tushov
9f61563492
kademlia random walk method ( #245 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
6 months ago
Ruslan Tushov
9f6f00f252
fix final action (moved optional was not reset) ( #244 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
6 months ago
Ruslan Tushov
f27f9fb9a2
thread safe scheduler ( #241 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
7 months ago
Ruslan Tushov
f128f56279
refactor (for qtils) ( #225 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
7 months ago
Ruslan Tushov
3cdf68a75a
fix websocket transport ( #238 )
* fix ws/wss observed address
* fix yamux use-after-free ub
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
7 months ago
GitHub
e0d8e055fe
chore: Update .github/workflows/stale.yml [skip ci]
9 months ago
Ruslan Tushov
06adba22c9
write free function ( #223 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
9 months ago
Dave Huseby
202245c1dd
chore(cfg): update issue templates to new YAML system ( #230 )
Signed-off-by: Dave Huseby <dwh@linuxprogrammer.org>
10 months ago
Ruslan Tushov
aa51f77fec
multistream max ( #229 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
10 months ago
Ruslan Tushov
e6972065cb
Refactor read write some ( #206 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
1 year ago
Dmitriy Khaustov
d117c3c76e
Refactor: format, include-guards, copyrights, git-hooks ( #222 )
* refactor: change copyright comments
* refactor: replace include-guards by pragma-once
* update: clang-format config
* feature: git-hook for format
* fix: target `clang-format`
* refactor: reapply updated clang-format config
* update: bump version to 0.1.17
* fix: clang-format version selector
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
1 year ago
Dmitriy Khaustov
e1c2393081
Replace Microsoft.GSL by STL analogs ( #221 )
* refactor: remove GSL
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* fix: review issues
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* lexicographical_compare_three_way
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
* remove concept
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
* fix: review issues
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* fix: review issues
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* fix: review issue
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* fix: review issue
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* fix: review issue
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* fixup: incomplete rename
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
* feature: deduction guideline for FinalAction
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
---------
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Co-authored-by: turuslan <turuslan.devbox@gmail.com>
1 year ago
Ruslan Tushov
ac2eec9b95
kademlia multiple protocols ( #219 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
1 year ago
Ruslan Tushov
28f3bf0570
fix ws empty frame ( #218 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
1 year ago
Dmitriy Khaustov
3afa249279
Refactor, remove redundants, update hunter ( #216 )
* fix: formatters
* fix: use ::fmt::format explicitly
* update: hunter
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
1 year ago
Dmitriy Khaustov
f38725b3db
Fixes for C++20 support ( #215 )
* fix: using soralog
* feature: formatter for outcome
* fix: muxer and streams test
* update: hunter
* update: own version
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
1 year ago
kamilsa
b5da81b6c2
Update hunter, switch to C++20 ( #214 )
* Update hunter links
* Switch to C++20
* Update ci.yml
* Remove ninja, fix cmake version
* Fix event emitter test
* Update cmake/toolchain/clang-15_cxx17.cmake
Co-authored-by: Dmitriy Khaustov <khaustov.dm@gmail.com>
---------
Co-authored-by: Dmitriy Khaustov <khaustov.dm@gmail.com>
1 year ago
GitHub
6294fd057d
chore: Update .github/workflows/stale.yml [skip ci]
1 year ago
GitHub
dc07eaff45
chore: Update .github/workflows/stale.yml [skip ci]
1 year ago
Ruslan Tushov
42982bf471
tcp listener ws wss address ( #211 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
1 year ago
kamilsa
3c5276de34
Update hunter ( #209 )
* Update hunter
* Update hunter to release version
2 years ago
Ruslan Tushov
25736e09b6
Fix injector ( #208 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Ruslan Tushov
47331081bc
Fix ws ( #207 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Ruslan Tushov
530d6cc68f
wss ( #205 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Ruslan Tushov
400ceb8f1d
ws beast ( #204 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
Dmitriy Khaustov
baed94dc62
Connection layers mechanism; Websocket layer ( #201 )
* feature: layers of connections
* feature: upgrade layers of connection
* fix: tests
* feature: test of layers upgrade
* refactor: enable disabled upgrader tests
* feature: sha-1 hash
* feature: websocket layer
* fix: read-buffer extending
* feature: decide layers for connection upgrade by provided multiaddress
* refactor: combine regular and websocket echo-client/-server to single one
* refactor: rename peer::Protocol to peer::ProtocolName
* refactor: implement addressToBytes, as replacement addressToHex
* refactor: mark addressToHex as deprecated
* feature: extend ConversionError
* fix: multiaddress manipulations
* feature: dummy protocols for tests
* fix: tests of converters
* fix: collision in DI
* refactor: update outcome macros for tests
* fix: connection upgrader in part of layers
* fix: ws read-writer in case big data fragmented by frames
* experiment: add delay of sending jumbo message, to give a chance for Id-protocol to end his work
* experiment: log difference sent and received data for analyse
* feature: control frames (ping/pong/close)
* fix: sending huge portions of data
* fix: echo sessions
* feature: optional hex dump in dumpBin
* fix: echo client
* update: hunter package manager
* fix: hardcoded request and response in http-to-ws upgraded
* fix: add ws version header
* fix: reduce length of ws-key header
* fix: make ws-header check case-insensitive
* fix: use locale independent predicate for ci-compare
* fix: use boost endian conversion instead endian macros
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
2 years ago
Ruslan Tushov
d2f2fd1d0e
Fix kademlia ( #202 )
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
2 years ago
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