Steven Allen
978091a626
feat: implement peering service
...
MVP for #6097
This feature will repeatedly reconnect (with a randomized exponential backoff)
to peers in a set of "peered" peers.
In the future, this should be extended to:
1. Include a CLI for modifying this list at runtime.
2. Include additional options for peers we want to _protect_ but not connect to.
3. Allow configuring timeouts, backoff, etc.
4. Allow groups? Possibly through textile threads.
5. Allow for runtime-only peering rules.
6. Different reconnect policies.
But this MVP should be a significant step forward.
2020-05-25 20:24:41 -07:00
Steven Allen
c17bcbd4e0
Merge pull request #7340 from ipfs/feat/boostrap-when-low
...
feat: bootstrap in dht when the routing table is empty
2020-05-25 13:01:08 -07:00
Steven Allen
ff17485cbb
feat: bootstrap in dht when the routing table is empty
...
Otherwise, we could end up with only DHT clients and never re-bootstrap.
I've left the default go-ipfs bootstrapping code in for now as it's technically
possible to disable the DHT entirely.
2020-05-24 22:55:30 -07:00
Steven Allen
48302a1a9d
chore: update go-ipfs-config
...
Fixes init output.
2020-05-22 16:40:43 -07:00
Steven Allen
ed437fa64e
chore: update go-ipfs-config
2020-05-22 13:47:57 -07:00
Steven Allen
c1a49d3b8f
chore: update libp2p deps
...
* Update swarm to prefer QUIC addrs over other addrs.
* Update yamux to increase throughput.
2020-05-20 22:13:46 -07:00
Steven Allen
0a8b2f117b
chore: update deps
...
And remove use of mafilter library (now rolled into go-multiaddr).
2020-05-20 17:51:04 -07:00
Steven Allen
69ccf99915
chore: update libp2p
2020-05-20 16:56:22 -07:00
dependabot-preview[bot]
5ed2fe53a2
chore(deps): bump github.com/ipfs/go-bitswap from 0.2.13 to 0.2.14
...
Bumps [github.com/ipfs/go-bitswap](https://github.com/ipfs/go-bitswap ) from 0.2.13 to 0.2.14.
- [Release notes](https://github.com/ipfs/go-bitswap/releases )
- [Commits](https://github.com/ipfs/go-bitswap/compare/v0.2.13...v0.2.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-08 11:28:35 +00:00
Steven Allen
3339ce3b0e
Merge pull request #6774 from MichaelMure/pincoreapi
...
pin: implement pin/ls with only CoreApi
2020-05-05 18:49:19 -07:00
Marten Seemann
6e9a97e3a9
update go-libp2p-quic-transport to v0.3.7
2020-05-06 08:20:23 +07:00
Jessica Schilling
ef4ef3445d
go mod tidy
2020-05-05 11:53:57 -06:00
Jessica Schilling
5e88b01e0f
go generate .
2020-05-05 11:36:32 -06:00
Michael Muré
6ef190f5a6
pin: implement pin/ls with only CoreApi
2020-05-04 18:02:50 -07:00
Steven Allen
591c541345
Merge pull request #7258 from ipfs/dependabot/go_modules/github.com/ipfs/go-ipfs-cmds-0.2.9
...
chore(deps): bump github.com/ipfs/go-ipfs-cmds from 0.2.2 to 0.2.9
2020-05-03 21:38:15 -07:00
Gowtham G
c548782e1a
Merge remote-tracking branch 'upstream/master' into fix/http/content-type
2020-05-02 14:22:09 +05:30
dependabot-preview[bot]
c0f500314a
chore(deps): bump github.com/ipfs/go-ipfs-cmds from 0.2.2 to 0.2.9
...
Bumps [github.com/ipfs/go-ipfs-cmds](https://github.com/ipfs/go-ipfs-cmds ) from 0.2.2 to 0.2.9.
- [Release notes](https://github.com/ipfs/go-ipfs-cmds/releases )
- [Commits](https://github.com/ipfs/go-ipfs-cmds/compare/v0.2.2...v0.2.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-02 04:09:03 +00:00
Marten Seemann
9971ddebdf
update go-libp2p-quic-transport to v0.3.6
2020-05-02 10:10:28 +07:00
Gowtham G
2e87ac88a3
Fixes #7252 - Uses gabriel-vasile/mimetype to support additional content types
2020-05-01 12:19:36 +05:30
Steven Allen
f006fc1647
Merge pull request #7237 from ipfs/dependabot/go_modules/github.com/prometheus/client_golang-1.6.0
...
chore(deps): bump github.com/prometheus/client_golang from 1.5.1 to 1.6.0
2020-04-29 16:31:21 -07:00
dependabot-preview[bot]
031346fb75
chore(deps): bump github.com/prometheus/client_golang
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.5.1...v1.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 22:59:14 +00:00
Steven Allen
4847083a61
Merge pull request #7236 from ipfs/dependabot/go_modules/go.uber.org/zap-1.15.0
...
chore(deps): bump go.uber.org/zap from 1.14.1 to 1.15.0
2020-04-29 15:52:20 -07:00
Steven Allen
3c55208b2f
chore: update the dht & routing helpers
...
fixes a CPU issue when canceling find provider requests
2020-04-29 13:51:41 -07:00
dependabot-preview[bot]
b0857bead0
chore(deps): bump go.uber.org/zap from 1.14.1 to 1.15.0
...
Bumps [go.uber.org/zap](https://github.com/uber-go/zap ) from 1.14.1 to 1.15.0.
- [Release notes](https://github.com/uber-go/zap/releases )
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/zap/compare/v1.14.1...v1.15.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 11:27:02 +00:00
Steven Allen
2204f0de2d
chore: update sockaddr
...
Removes any and all requirements on CGO. Previously, ipfs would fail to build if
CGO wasn't explicitly disabled and no C compiler was available.
2020-04-28 02:42:08 -07:00
Steven Allen
bdbb79d30f
fix: non-blocking peerlog logging
...
Avoid ever blocking new connections in the peer logger. Instead:
1. Send all new peers to a highly buffered channel.
2. Emit "dropped event" errors whenever we detect that we're dropping events and falling behind.
3. Don't log protocols, they're too large.
4. Don't log disconnects, we don't need them.
2020-04-27 19:15:25 -07:00
Steven Allen
314e83c38d
Merge pull request #7231 from ipfs/fix/7015
...
chore: update go-ipfs-provider
2020-04-27 18:12:16 -07:00
Steven Allen
b3b0a4eed4
Merge pull request #7229 from ipfs/feat/fixup-config-docs
...
doc: update go-ipfs docs for 0.5.0 release
2020-04-27 17:59:04 -07:00
Steven Allen
432520531e
chore: update go-ipfs-provider
...
fixes #7015
2020-04-27 17:58:24 -07:00
Marten Seemann
f59b737f14
update go-libp2p-quic-transport to v0.3.5
2020-04-28 07:33:37 +07:00
Steven Allen
4ebe7e633d
doc: fixup config docs
...
1. Update go-ipfs-config to fix default datastore.
2. Update TOC.
3. Update profiles list and indicate that badger isn't experimental.
2020-04-27 15:12:04 -07:00
Steven Allen
3c171c3bd2
chore: update circuit relay
...
Don't abort in Accept when a single relay connection aborts.
2020-04-26 11:49:34 -07:00
Steven Allen
69c438b581
fix: don't hang on bootstrap
...
fixes #7206
2020-04-26 11:32:55 -07:00
Steven Allen
8dceecae16
chore: update deps
...
* Don't forget observed addresses from connected peers.
* Avoid many possible identify protocol races.
* Fix some dht events.
2020-04-25 00:13:35 -07:00
Steven Allen
e32a9226c3
chore: update bitswap
...
Ensure we send cancels when closing the session.
2020-04-23 14:50:10 -07:00
Steven Allen
4ab17f50a8
chore: update ws transport to fix race
2020-04-23 01:23:24 -07:00
Steven Allen
817820a3fe
chore: update bitswap to fix race
2020-04-23 01:23:06 -07:00
Steven Allen
c3b34e5443
chore: update dht
...
fixes a small bug in query notifications that was causing a test to fail
2020-04-23 01:17:54 -07:00
Steven Allen
5d13ac370b
fix: fix duplicate block issue in bitswap
...
1. Increase broadcast timeout.
2. Fix use of sessions when pinning.
This also includes some bitswap changes to reduce some memory allocations and
optimize some hot spots.
2020-04-23 00:31:06 -07:00
Steven Allen
c52d353b4b
chore: update bitswap
...
More performance improvements.
2020-04-21 22:52:14 -07:00
Will Scott
68372ba299
run against interface with sleeps before dht queries
2020-04-21 10:50:47 -07:00
Steven Allen
144306f970
fix: update the dht to fix yggdrasil
...
Specifically:
1. Don't add peers with IPv6 addresses outside the 2000::/3 range to the WAN
DHT. These peers are not on the public internet.
2. Do add these peers to the LAN DHT. Really, that's the "catch all other" DHT.
2020-04-20 21:53:07 -07:00
Steven Allen
ee741fece1
chore: update flatfs
...
Another attempt to fix #7115 .
2020-04-17 14:45:00 -07:00
Steven Allen
d354ccdb60
chore: update deps
2020-04-17 12:54:49 -07:00
Marten Seemann
ac122ba4fd
update go-libp2p-quic-transport to v0.3.4
2020-04-17 16:16:13 +07:00
Steven Allen
66643e0c9d
chore: update the DHT
...
Reduces allocations
2020-04-15 15:53:59 -07:00
Steven Allen
1f23fc000c
feat: add autonat config options
...
1. Enable AutoNATService on _all_ nodes by default. If it's an issue, we can
disable it in RC3 but this will give us the best testing results.
2. Expose options to configure AutoNAT rate limiting.
2020-04-14 20:54:58 -07:00
Steven Allen
9a9841074f
chore: update bitswap
...
Remove some allocation hotspots
2020-04-14 16:41:13 -07:00
Steven Allen
e1f78e7929
chore: update deps
2020-04-13 19:51:22 -07:00
Steven Allen
28e31e17a8
Merge pull request #7127 from ipfs/feat/dual-dht
...
feat: introduce the dual WAN/LAN DHT
2020-04-13 19:01:12 -07:00