Marten Seemann
99e8873fd4
identify: also match observed against listening addresses
2021-12-04 14:18:33 +04:00
Marten Seemann
adecbc72ed
allow the ping protocol on transient connections
2021-11-23 16:19:42 +04:00
Marten Seemann
16469528f8
make the Type field required in the HolePunch protobuf
2021-11-21 12:53:08 +04:00
Marten Seemann
ac2d335505
only start hole punching service after the host has a public address
2021-11-16 14:51:15 +04:00
Marten Seemann
79db68cbce
reject hole punching attempts when we don't have any public addresses
2021-11-16 14:41:04 +04:00
Marten Seemann
1464cc7073
convert the IDService to an interface
2021-11-16 14:40:41 +04:00
Gus Eggert
7a35d0df97
feat: plumb through peerstore context changes ( #1237 )
2021-11-12 13:43:02 -05:00
Marten Seemann
d01b892679
update go-libp2p-swarm to v0.7.0
2021-10-19 10:39:32 +02:00
Marten Seemann
a157b1bd91
move isRelayAddr helper function
2021-10-12 15:09:30 +02:00
Marten Seemann
2828a61f9c
move circuitv2 tests to the relay package
2021-10-12 15:09:29 +02:00
Marten Seemann
7d06b23cef
Merge pull request #1213 from libp2p/fix-holepunch-structured-logging
...
fix structured logging in holepunch coordination
2021-10-05 15:08:53 +01:00
Marten Seemann
8f2212ab72
fix structured logging in holepunch coordination
2021-10-05 12:33:55 +01:00
Marten Seemann
105f1e6b64
close the ObserverAddrManager when the ID service is closed
2021-10-03 14:44:26 +01:00
Marten Seemann
72b58240e8
Merge pull request #1200 from libp2p/fix-flaky-id-test
...
fix flaky TestFastDisconnect identify test
2021-09-28 15:31:37 +01:00
Marten Seemann
20f296f2e9
chore: update go-tcp-transport to v0.3.0
2021-09-27 13:30:40 +01:00
Marten Seemann
fa64faf44b
Merge pull request #1201 from libp2p/remove-detect-race
...
remove dependency on github.com/ipfs/go-detect-race
2021-09-26 12:13:00 +01:00
Marten Seemann
eba91ac63e
Merge pull request #1191 from libp2p/fix-flaky-end-to-end-sim-connect-test
...
fix flaky TestEndToEndSimConnect holepunching test
2021-09-25 15:49:44 +01:00
Marten Seemann
4975f0abe5
remove dependency on github.com/ipfs/go-detect-race
2021-09-25 14:29:26 +01:00
Marten Seemann
7fa07a4aac
close all connections in the TestFastDisconnect test
2021-09-24 18:49:40 +01:00
Marten Seemann
6eada787d9
fix flaky TestFastDisconnect identify test
2021-09-24 16:16:16 +01:00
Marten Seemann
7ecefa8cba
reject circuitv2 reservations with nonsensical expiration times
2021-09-24 14:43:22 +01:00
vyzo
9674b5cda5
make hop tags and values private
2021-09-21 13:38:50 +03:00
vyzo
0d8a1852cf
make tag value fixed, tagged in first circuit, untagged in last.
2021-09-21 13:37:41 +03:00
vyzo
369df59523
fix tag increment
2021-09-21 13:37:41 +03:00
vyzo
3df061d90e
tag relay hops in relay implementations
2021-09-21 13:37:40 +03:00
vyzo
d1e26810a0
Add standalone implementation of v1 Relay ( #1186 )
...
* add circuitv1 protobuf
* add implementation of v1 circuit relay
Intended to be used by standalone daemons and tests
* remove references to go-libp2p-circuit from production code
* update tests to use the in-tree v1 Relay
* use go-log/v2 in relay v1 impl
* use in-tree v1 relay in relay example
* remove go-libp2p-circuit dep from examples go.mod, go mod tidy
2021-09-20 00:29:42 -07:00
Marten Seemann
af24f73bb3
fix flaky TestEndToEndSimConnect holepunching test
2021-09-20 08:20:02 +01:00
Marten Seemann
b7bee3855c
remove the context from the libp2p and from the Host contructor
2021-09-18 14:06:56 +02:00
Marten Seemann
29da01af70
update go-libp2p-core to v0.10.0
2021-09-17 18:50:15 +02:00
Marten Seemann
a5f982ff01
Merge pull request #1185 from libp2p/circuit-shutdown
...
don't use a context to shut down the circuitv2
2021-09-17 18:23:41 +02:00
Marten Seemann
729386c495
don't use a context to shut down the circuitv2
2021-09-17 11:37:28 +02:00
Steven Allen
2c69c99b23
fix: remove v1 go-log dep
2021-09-15 20:01:07 +02:00
vyzo
79d995404c
Use circuitv2 code ( #1183 )
...
* move circuitv2 to p2p/protocol
* update circuitv2 imports
* RIP circuit v2; use circuitv2
* fix autorelay test
* fix holepunch test
* fix relay example
2021-09-10 02:43:58 -07:00
Marten Seemann
3c25b386d9
merge branch 'hole-punching'
2021-09-08 18:23:13 +01:00
Marten Seemann
8206fcda76
signalling for hole punching ( #1168 )
...
* hole punching protocol
* implement the new retry logic (opening a new stream per hole punch)
* rename the holepunch.HolePunchService to holepunch.Service
* remove stream handler when closing
* remove misleading comment from protobuf, add link to spec
* remove unnecessary netNotifiee.HolePunchService
* simplify receiving from the timer channel
* don't defer the closing of the hole punching stream
* only accept hole punch streams from relayed peers
* refactor error logging
* fix incorrect counting of incoming hole punch attempts
* rename HolePunch to DirectConnect
* fix usage of the wait group to close the hole punch service
* use a gc to the garbage collect the holepunch tracer
* check directionality of connection when accepting the hole punch stream
* add comment why we only call Connect once
* move deduplication logic to the holepunch service
Co-authored-by: aarshkshah1992 <aarshkshah1992@gmail.com>
2021-09-08 09:41:48 -07:00
Marten Seemann
9342776c9c
allow concurrent calls to Close and SetTTL in the ObservedAddrManager
2021-09-07 13:48:07 +01:00
Marten Seemann
2cf1c457d5
don't use a context for closing the ObservedAddrManager
2021-09-05 18:30:11 +01:00
Marten Seemann
07dbdf262f
remove unnecessary sync.Once from the identify service
2021-09-05 18:07:10 +01:00
Steven Allen
fd4d2a47e2
Merge pull request #1172 from libp2p/fix-flaky-obsaddr-test
...
fix flaky TestObsAddrSet test
2021-08-27 12:37:55 -07:00
Marten Seemann
6e75f7e767
fix flaky TestObsAddrSet test
2021-08-27 11:26:10 +01:00
Marten Seemann
a507d12bd4
clean up messy defer logic in IDService.sendIdentifyResp
2021-08-27 09:52:08 +01:00
Marten Seemann
82a43f7abd
remove deprecated basichost.New constructor
2021-08-16 16:49:28 +02:00
Steven Allen
d38694b8cd
Merge pull request #1136 from libp2p/fix/deprecated
...
fix: remove deprecated call
2021-07-22 15:43:40 -07:00
Steven Allen
38eb9a71cd
fix: remove deprecated call
2021-07-22 15:39:35 -07:00
Marten Seemann
25d36cdd05
remove deprecated identify.ClientVersion
2021-07-22 21:49:25 +02:00
Marten Seemann
2603aac445
remove slow ObservedAddrManager test that doesn't test anything
2021-05-17 20:02:04 -07:00
Steven Allen
a6747e5b72
test: deflake tests
2021-04-29 22:20:44 -07:00
Steven Allen
2ad02f79b2
chore: update to go-log v2
2021-04-29 14:15:17 -07:00
Steven Allen
2a72777ef9
fix: address review feedback
2021-04-29 14:13:54 -07:00
Cory Schwartz
04a93f4080
static check fixes
2021-04-29 14:08:24 -07:00