Marten Seemann
59ea27eb7c
don't try to reconnect to already connected relays ( #1401 )
2022-04-18 04:41:55 -07:00
Marten Seemann
bc02323752
reduce flakiness of AutoRelay TestBackoff test ( #1400 )
2022-04-16 10:31:04 -07:00
Marten Seemann
0e72b4832b
Merge pull request #1396 from libp2p/autorelay-v1-handling
...
improve AutoRelay v1 handling
2022-04-14 18:30:12 +01:00
Marten Seemann
ca73928bfc
disable circuit v1 support by default, add option to reenable it
2022-04-14 17:58:15 +01:00
Marten Seemann
23984886c6
improve handling of v1 relays in autorelay
2022-04-14 17:15:57 +01:00
Marten Seemann
4dde7214bb
remove note about gx from README ( #1385 )
2022-04-14 08:34:25 -07:00
Marten Seemann
e8a2c74b83
chore: update transport dependencies ( #1387 )
2022-04-11 11:31:04 -07:00
web3-bot
38c8195999
sync: update CI config files ( #1372 )
...
* bump go.mod to Go 1.17 and run go fix
* update .github/workflows/automerge.yml
* update .github/workflows/go-test.yml
* update .github/workflows/go-check.yml
Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
2022-04-10 15:33:32 -07:00
Marten Seemann
2ad1d3d696
Merge pull request #1381 from libp2p/use-build-info
...
use the vcs information from ReadBuildInfo in Go 1.18
2022-04-10 22:53:52 +01:00
Marten Seemann
826090864f
truncate the versoin hash after 9 characters, use -dirty suffix
2022-04-10 22:00:19 +01:00
Marten Seemann
1e87471c10
use the vcs information from ReadBuildInfo in Go 1.18
2022-04-10 18:46:08 +01:00
Marten Seemann
d347c86e96
chore: update go-libp2p-quic-transport to v0.17.0 ( #1380 )
2022-04-10 10:45:22 -07:00
Marten Seemann
b4064b4bf8
fix race condition in AutoRelay candidate handling ( #1383 )
2022-04-10 10:44:28 -07:00
Marten Seemann
1c6bfa2285
Merge pull request #1368 from libp2p/discover-v2-relays
...
implement relay v2 discovery
2022-04-10 12:35:43 +01:00
Marten Seemann
60097363b9
fix go vet error in proxy example ( #1377 )
2022-04-10 04:13:07 -07:00
Marten Seemann
46fc1e5082
fix race condition when the AutoRelay peerChan fills up
2022-04-10 12:12:48 +01:00
Piotr Galar
7ff8ea98be
Merge pull request #317 from libp2p/web3-bot/sync
...
sync: update CI config files
2022-04-06 15:36:46 +02:00
galargh
b53bbc51a4
fix: call to (*T).Fatal from a non-test goroutine
2022-04-06 14:51:34 +02:00
Marten Seemann
8d522620aa
update quic-go to v0.27.0 ( #264 )
2022-04-06 05:48:57 -07:00
Marten Seemann
44350ef427
use exponential backoff, with jitter
2022-04-05 18:28:33 +01:00
Marten Seemann
220166ce78
make sure that all static relay servers are used
2022-04-05 18:24:49 +01:00
Marten Seemann
ca6ded2a81
fix context leak when autorelay option errors
2022-04-05 15:23:51 +01:00
Marten Seemann
6bb54b5773
fix logic to prefer circuit v2 over circuit v1
2022-04-05 15:23:51 +01:00
Marten Seemann
98f46f2e84
rename autorelay.WithNumCandidates to WithMaxCandidates
2022-04-05 15:23:51 +01:00
Marten Seemann
7e767cbc22
correctly handle static relays
2022-03-31 11:31:05 +01:00
Marten Seemann
29fd1022a4
implement relay discovery in autorelay
2022-03-31 11:29:41 +01:00
Marten Seemann
16de44aa7b
rename autorelay.go to relay_finder.go
2022-03-31 11:01:32 +01:00
Andrew Gillis
e8d3df92f7
Resolve addresses when creating a new stream ( #1342 )
...
* Resolve addresses when creating a new stream
BasicHost.NewStream will try to establish a connection if one doesn't already exist. This will fail if the hosts addresses have not yet been resolved. This PR resolves the hosts addresses before creating the stream and possible new connection.
Fixes #1302
* Changes from review comments
2022-03-31 02:45:20 -07:00
Marten Seemann
72fe013d15
remove mplex from the list of default muxers ( #1344 )
2022-03-30 09:51:36 -07:00
Marten Seemann
11e6345002
Merge pull request #1355 from libp2p/refactor-holepunching
...
refactor the holepunching code
2022-03-30 14:15:04 +01:00
Marten Seemann
875952510b
speed up the connmgr tests ( #1354 )
2022-03-30 05:54:58 -07:00
Marten Seemann
b33326861c
update the examples to v0.18.0 ( #1362 )
2022-03-30 05:54:34 -07:00
Marten Seemann
5bab581100
update go-libp2p-resource manager, release v0.18.0 ( #1361 )
...
* chore: update go-libp2p-resource-manager to v0.1.5
* release v0.18.0
2022-03-18 00:52:25 -07:00
Marten Seemann
13d0381768
fix flaky BackoffConnector test ( #1353 )
2022-03-10 09:37:31 -08:00
Marten Seemann
85651ee0f6
only start the hole puncher if the node is behind a NAT / firewall
2022-03-10 17:37:04 +01:00
Marten Seemann
9b26695a9f
simplify the initiateHolePunch error handling
2022-03-10 17:06:52 +01:00
Marten Seemann
5fa8e6da23
only initialize the hole puncher once a public address was discovered
2022-03-10 17:06:50 +01:00
Marten Seemann
0648080b7b
split the holepunch code into a service and a holepuncher
2022-03-10 14:49:38 +01:00
Marten Seemann
f0db9cc407
release v0.18.0-rc6 ( #1350 )
2022-03-04 01:47:38 -08:00
Marten Seemann
49d75d7b88
update mplex ( #1348 )
2022-03-04 01:12:26 -08:00
Marten Seemann
d6fc4be820
update mplex ( #31 )
2022-03-03 22:56:56 -08:00
vyzo
4c0e2b887c
Merge pull request #1341 from libp2p/release-v0.18.0-rc5
...
release v0.18.0-rc5
2022-02-22 12:14:25 +02:00
vyzo
2d8f0a888f
bump version to v0.18.0-rc5
2022-02-22 11:55:14 +02:00
vyzo
32d7977c6a
update go-libp2p-swarm and go-tcp-transport
2022-02-22 11:54:52 +02:00
vyzo
0487a88370
Merge pull request #315 from libp2p/fix/dial-worker
...
Refactor dial worker loop into an object and fix bug
2022-02-22 11:42:17 +02:00
vyzo
3828fa3570
dial worker tests
2022-02-22 09:43:36 +02:00
vyzo
ebb9e45a59
RIP active dial tracking
...
It turns out it is not actually necessary if the limiter short-circuits.
Point being is that if the request channel has been closed, there is no active dial
any more, at which point we might as well consider it done.
This fixes the goroutine leak.
2022-02-22 09:42:59 +02:00
vyzo
f50fa5792c
remove stale comment
2022-02-22 09:42:59 +02:00
vyzo
53881b2b0b
refactor dialWorkerLoop into an object
2022-02-22 09:42:53 +02:00
Marten Seemann
4b236dded4
update README ( #1330 )
2022-02-21 02:38:02 -08:00