Commit Graph

1128 Commits

Author SHA1 Message Date
Steven Allen d820ea1138
Merge pull request #593 from libp2p/dep/update-nat
dep: update go-libp2p-nat
2019-04-11 22:47:13 -07:00
Steven Allen 2c33dc34ac dep: update go-libp2p-nat
Switches to libp2p/go-nat which has some improved gateway detection logic.
2019-04-11 22:13:02 -07:00
Raúl Kripalani 29e5ff48bb farewell gx; thanks for serving us well. 2019-04-11 21:11:15 +01:00
Yusef Napora 9c2c6a29d9
Merge pull request #591 from libp2p/readme/bye-gx
Deprecate gx in readme & link to workspace repo
2019-04-11 13:38:11 -04:00
Yusef Napora 51621c18bd fix TOC links 2019-04-11 11:48:26 -04:00
Yusef Napora c331b52d71 Add link to discuss topic about gx migration 2019-04-11 10:28:02 -04:00
Yusef Napora d092ebaf21 deprecate gx in readme, link to workspace
This adds a link to the workspace-go-libp2p repo and some context
on what it's used for.

It also removes gx-related instructions and adds a deprecation
notice about gx, encouraging users to migrate.
2019-04-11 10:23:32 -04:00
vyzo 53ee3dda33
Merge pull request #590 from libp2p/feat/no-dial-option
Respect nodial option in routed host
2019-04-10 23:17:27 +03:00
vyzo e4061bbb87 travis: remove gx build 2019-04-10 23:12:43 +03:00
vyzo 1e48e15da7 respect NoDial option in routed host 2019-04-10 23:12:14 +03:00
vyzo 25adea6d56 gomod: update go-libp2p-net, go-libp2p-swarm, and go-libp2p-circuit 2019-04-10 23:09:17 +03:00
vyzo 49fe8adced
Merge pull request #587 from libp2p/gomod/update
update go-libp2p-autonat
2019-04-10 10:44:17 +03:00
vyzo 2bd14ad185 update go-libp2p-autonat 2019-04-10 10:42:16 +03:00
vyzo 202655c7ba
Merge pull request #586 from libp2p/fix/obsaddr-panic
fix panic in observed address activation check
2019-04-09 21:53:43 +03:00
vyzo a4776e6174 fix panic in observed address activation check
The activated check cleans up, which leads to panics with concurrent reads.
This moves the seenBy set clean up into gc, where it belongs
2019-04-09 21:52:40 +03:00
vyzo 7ae0fda2bd
Merge pull request #585 from libp2p/fix/obsaddr
Improve observed address handling
2019-04-09 20:41:24 +03:00
vyzo efdc140264 raise activation channel capacity to 16 2019-04-09 20:35:36 +03:00
Yusef Napora 2a48294236 add discuss badge to readme 2019-04-09 11:12:43 -04:00
vyzo fe7ba05e38 delete empty address sets on observed address set gc 2019-04-09 14:00:03 +03:00
vyzo 17001b24dd use a read/write lock for observed address set 2019-04-09 13:40:46 +03:00
vyzo f4af8d493d fix identify tests 2019-04-09 13:20:38 +03:00
vyzo 9b8192b7d2 initialize ttl in ObservedAddrSet 2019-04-09 13:19:54 +03:00
vyzo b8a152f593 use a background worker for updating/gcing the observed address set 2019-04-09 12:44:13 +03:00
vyzo e76c8a9c38 don't eagerly update the observed address set in Addrs
allocates and eats a lot of cpu time under the lock;
let a background worker gc periodically.
2019-04-09 12:13:30 +03:00
vyzo 9051b3c26e
Merge pull request #583 from libp2p/fix/faster-observer
identify: avoid parsing/printing multiaddrs
2019-04-09 10:47:24 +03:00
Steven Allen 316f0867f6 identify: avoid parsing/printing multiaddrs 2019-04-08 18:43:11 -07:00
Steven Allen 3a998a111a
Merge pull request #582 from libp2p/feat/reduce-lock-contention
move things outside of the lock in obsaddr
2019-04-08 18:39:09 -07:00
Steven Allen aebe405680 test: disable TestAddAddrsProfile when the race detector is enabled 2019-04-08 18:30:59 -07:00
whyrusleeping a7eb2efe4b move things outside of the lock in obsaddr 2019-04-08 16:14:05 -07:00
Steven Allen 9fbcf243f9
Merge pull request #577 from libp2p/fix/only-reported-addrs
identify: be more careful about the addresses we store
2019-04-08 10:20:09 -07:00
Steven Allen bcbf7a59c1 identify: only record observed addresses that match an address we're announcing
This is should prevent us from, e.g., announcing relay addresses _just_ because
a peer tells us we're reachable through a relay.
2019-04-08 10:15:42 -07:00
vyzo fcb60e2474
Merge pull request #581 from libp2p/gomod/update
gomod: update go-libp2p-circuit
2019-04-08 19:10:03 +03:00
vyzo 9bb06fcb2a gomod: update go-libp2p-circuit 2019-04-08 19:07:47 +03:00
Steven Allen a5ef3bd892
Merge pull request #578 from libp2p/fix/relay-host-stuff
relay: turn autorelay into a service and always filter out relay addresses
2019-04-06 08:53:38 -07:00
Steven Allen beb02be512
Merge pull request #576 from libp2p/fix/constructor-nits
chore: fail in the libp2p constructor if we fail to store the key
2019-04-06 08:36:32 -07:00
Steven Allen 87d57b5155 relay: allow users to explicitly add relay addresses 2019-04-06 08:23:07 -07:00
Steven Allen 7093262620 relay: update documentation 2019-04-06 08:12:29 -07:00
vyzo fee7b01e32 add missing word 2019-04-06 18:11:33 +03:00
Steven Allen c580255d13 relay: drop design comments
These are issues for another day.
2019-04-06 07:42:38 -07:00
Steven Allen 1d8efc31aa doc: document relay options 2019-04-06 07:42:38 -07:00
vyzo 45df977d57 bump relay record limit to 50 2019-04-06 12:22:12 +03:00
Steven Allen 5b665643c7 relay: only stop advertising relay addresses if we fully disconnect 2019-04-05 19:54:31 -07:00
Steven Allen 80ada8a7d6 relay: no more wrapping
We don't need the host wrappers, we can just replace the filter AddrsFactory.

Also, always filter out relay addresses.
2019-04-05 19:54:26 -07:00
Steven Allen 12d0f8c535
Merge pull request #580 from albrow/patch-1
Fix broken link in README.md
2019-04-05 14:41:59 -07:00
Alex Browne 125e0995c8
Fix broken link in README.md
It looks like `github.com/whyrusleeping/go-smux-mplex` was renamed to `github.com/whyrusleeping/go-smux-multiplex`.
2019-04-05 14:36:04 -07:00
Steven Allen 09d9f0cc22 chore: fail in the libp2p constructor if we fail to store the key 2019-04-05 14:09:40 -07:00
Steven Allen 544c412193 identify: only store _reported_ multiaddrs
We still tell the remote host about the observed addr but we don't store it.
That way, we give them a chance to decide if they want to actually use and
advertise it.

Ideally, we'd distinguish between local information and signed routing
information but we don't do that yet.

This should reduce the address explosion issue where peers learn about
multiple (bad) observed addresses for the same peer. It should also give peers
more control over how they can be dialed.
2019-04-05 13:57:50 -07:00
Steven Allen 28eb467dc4
Merge pull request #572 from libp2p/dep/update-transports
dep: update transports
2019-04-04 00:51:13 -07:00
Steven Allen e170c4a6bb
Merge pull request #571 from libp2p/readme-update
Link to docs & discuss in readme
2019-04-04 00:48:15 -07:00
Steven Allen 2a8398b05f dep: update transports 2019-04-04 00:47:38 -07:00