vladopajic
81310df2a2
chore(switch): remove unnecesery debug log entry ( #1575 )
2025-07-24 15:00:21 +00:00
Gabriel Cruz
2e6b1d2738
feat(wstransport): add autotls support ( #1535 )
2025-07-18 11:58:27 -04:00
MorganaFuture
9e6c4cb4d2
fix: properly handle CancelledError in switch accept loop ( #1537 )
...
Signed-off-by: MorganaFuture <andrewmochalskyi@gmail.com >
2025-07-17 21:29:37 +00:00
vladopajic
7e07ffc5a8
chore: add info to error ( #1505 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-07 14:32:52 -03:00
Gabriel Cruz
4ed72a753c
chore(autotls): make autotls manager into service ( #1486 )
2025-07-01 17:51:45 +00:00
Gabriel Cruz
2609c270b8
feat(autotls): add AutoTLSManager ( #1472 )
2025-06-25 14:19:59 +00:00
Ivan FB
08299a2059
chore: Add some more context when an exception is caught ( #1432 )
...
Co-authored-by: richΛrd <info@richardramos.me >
2025-06-12 14:38:25 +00:00
richΛrd
340ea05ae5
feat: quic ( #1265 )
...
Co-authored-by: vladopajic <vladopajic@users.noreply.github.com >
2025-03-26 10:17:15 -04:00
vladopajic
adf2345adb
chore: specify raised exceptions in miscellaneous places ( #1269 )
2025-02-28 09:19:53 -04:00
vladopajic
f4c94ddba1
chore(dialer): list raised exceptions ( #1264 )
2025-02-24 20:10:20 +01:00
vladopajic
86b6469e35
chore: list raised exceptions in switch services ( #1251 )
...
Co-authored-by: richΛrd <info@richardramos.me >
2025-02-24 15:33:06 +01:00
Álex
48846d69cb
chore(logs): remove duplicate msg key ( #1180 )
...
* Remove `msg` parameter key in logs.
closes: https://github.com/vacp2p/nim-libp2p/issues/1176
2024-08-14 17:19:54 +02:00
Ludovic Chenut
100f3188ed
feat(peerEvents): add a peerEvent Identified ( #843 )
...
Co-authored-by: diegomrsantos <diego@status.im >
2024-06-21 13:06:59 +02:00
diegomrsantos
dc83a1e9b6
chore(formatting): format the whole codebase using nph 0.5.1 ( #1118 )
2024-06-11 17:18:06 +02:00
diegomrsantos
120549e313
fix(services): setup services before peerinfo is updated ( #1120 )
2024-06-07 11:48:44 +02:00
Jacek Sieka
3ca49a2f40
fix(transport): various tcp transport races ( #1095 )
...
Co-authored-by: diegomrsantos <diego@status.im >
2024-05-14 07:10:34 +02:00
Jacek Sieka
2ede0fa40c
remove redundant gcsafe annotations ( #999 )
2023-12-05 08:05:32 +01:00
diegomrsantos
deb72c8580
fix(dcutr): update the DCUtR initiator transport direction to Inbound ( #994 )
2023-11-29 17:38:47 +01:00
Tanguy
224f92e172
Fix #916 regression causing accept loop lockup ( #919 )
2023-06-20 14:18:49 +00:00
Tanguy
49dfa84c6f
Transports: handle TransportAbortedError properly ( #916 )
2023-06-14 15:55:56 +00:00
Tanguy
c76d1e18ef
Remove nim 1.2 support ( #907 )
2023-06-07 11:12:49 +00:00
Tanguy
225accd11b
Less warnings ( #813 )
...
Co-authored-by: Diego <diego@status.im >
2023-05-18 10:24:17 +02:00
diegomrsantos
7d6bc545e0
Handle dns addrs in HP service ( #890 )
2023-05-16 14:59:02 +02:00
diegomrsantos
b7726bf68f
Dcutr ( #824 )
...
Co-authored-by: Tanguy <tanguy@status.im >
2023-04-14 16:23:19 +02:00
Tanguy
8d5ea43e2b
Upgrade flow refactoring ( #807 )
2023-03-08 12:30:19 +01:00
diegomrsantos
4ace70d53b
Connect is able to force a new connection ( #849 )
2023-01-25 11:19:03 +01:00
Tanguy
c11772c94e
Happy new year! ( #847 )
2023-01-20 15:47:40 +01:00
Ludovic Chenut
489c115132
Autorelay service ( #819 )
2023-01-17 16:18:38 +01:00
diegomrsantos
67ef25fae0
Autonat service ( #814 )
...
Co-authored-by: Tanguy <tanguy@status.im >
2022-12-16 11:32:00 +00:00
Tanguy
3863a4cd21
Allow connect with known PeerId in MA ( #817 )
2022-12-08 16:11:55 +00:00
diegomrsantos
b3d9360dfc
Starting switch two times does not crash ( #810 )
2022-11-29 15:21:51 +00:00
Tanguy
7b103e02f2
Allow public address mapping ( #767 )
2022-10-20 12:22:28 +02:00
Tanguy
72abe822c0
Fix switch failed start ( #770 )
2022-09-15 07:06:32 +00:00
Jacek Sieka
dfbfbe6eb6
allow connection to a peer with unknown PeerId ( #756 )
...
Co-authored-by: Tanguy <tanguy@status.im >
2022-09-05 14:31:14 +02:00
Tanguy
2d864633ea
ConnManager connection tracking refacto ( #749 )
2022-08-03 16:48:19 +02:00
Miran
2fbe82bf9d
make it more Nim 1.4+ compatible ( #742 )
2022-08-03 13:33:19 +02:00
lchenut
34c2fb8787
Circuit relay v2 ( #717 )
2022-08-01 14:31:22 +02:00
lchenut
912873f8b3
Replace table by seq for storing muxers ( #741 )
...
Replace table by seq for stocking muxers
2022-07-22 12:54:09 +02:00
Tanguy
d0523fdc9d
Documentation ( #716 )
2022-07-01 20:19:57 +02:00
lchenut
0ece5eaf12
Start/stop protocols ( #730 )
...
Starting/stopping a switch now starts/stops all protocols mounted on that switch
2022-06-30 11:21:33 +02:00
Tanguy
60becadcf9
Peer store refacto ( #700 )
...
There is now a global PeerStore structure (instead of having one for libp2p, one for waku, etc)
The user can create custom books for new types easily
Also add a pruning system to remove dead peers
2022-05-25 12:12:57 +02:00
lchenut
13503f3799
Circuit relay v1 ( #670 )
...
Circuit relay v1
2022-05-18 10:19:37 +02:00
Tanguy
9ba5c069c8
Update SPR when the PeerInfo changes ( #711 )
2022-04-13 09:35:28 +02:00
Tanguy
c09d032133
Allow force dial ( #696 )
2022-02-24 17:31:47 +01:00
Tanguy
df566e69db
Fixes for style check ( #676 )
2021-12-16 11:05:20 +01:00
Eric Mastro
fffa7e8cc2
fix: remove returned Futures from switch.start ( #662 )
...
* fix: remove returned Futures from switch.start
The proc `start` returned a seq of futures that was mean to be awaited by the caller. However, the start proc itself awaited each Future before returning it, so the ceremony requiring the caller to await the Future, and returning the Futures themselves was just used to handle errors. But we'll give a better way to handle errors in a future revision
Remove `switch.start` return type (implicit `Future[void]`)
Update tutorials and examples to reflect the change.
* Raise error during failed transport
Replaces logging of error, and adds comment that it should be replaced with a callback in a future PR.
2021-12-03 19:23:12 +01:00
Dmitriy Ryajov
73168b6eae
Add support for multiple addresses to transports ( #598 )
...
* add test for multiple local addresses
* allow transports to listen on multiple addrs
* fix tcp transport accept
* check switch addrs are correct
* switch test to port 0
* close accepted peers on close
* ignore CancelledError in transport accept
* test ci
* only accept in accept loop
* avoid accept greedyness
* close acceptedPeers
* accept doesn't crash on cancelled fut
* add common transport test
* close conn on handling failure
* close accepted peers in two steps
* test for macos
* revert accept greedyness
* fix dialing cancel
* test chronos fix
* add ws
* ws cancellation
* small fix
* remove chronos blocked test
* fix testping
* Fix transport's switch start (like #609 )
* bump chronos
* Websocket: handle both ws & wss
Co-authored-by: Tanguy Cizain <tanguycizain@gmail.com >
Co-authored-by: Tanguy <tanguy@status.im >
2021-11-24 14:01:12 -06:00
Tanguy
c92125a1a4
Integrate dns resolving ( #615 )
...
* integrate dns
* give hostname to transport dial
* add hostname test
* switched to websock master
* Add dnsaddr dial test w multiple transports
2021-11-08 13:02:03 +01:00
Tanguy
1b2cdd6aec
Merge branch 'master' into unstable
2021-09-09 13:22:45 +02:00
Menduist
d02735dc46
Remove peer info ( #610 )
...
Peer Info is now for local peer data only.
For other peers info, use the peer store.
Previous reference to peer info are replaced with the peerid
2021-09-08 11:07:46 +02:00