Commit Graph

79 Commits

Author SHA1 Message Date
Steven Allen
98e7a3d981 dep: update deps to fix critical regressions
1. Build issue with badger due to deleted tag.
2. High CPU issue in bitswap under high load.
3. Significant throughput regression in bitswap.
2019-07-04 08:59:48 -07:00
Steven Allen
23d35184c3 fix: use http.Error for sending errors
This sets a few headers that prevent browsers from misinterpreting the error
text.
2019-05-25 10:45:17 -07:00
Steven Allen
72941102dc fix race between adding tags and registering services with the connection manager
Hopefully helps fix #6271 and a bunch of other related issues.
2019-05-23 09:50:22 -07:00
Steven Allen
e50a8c8c05 fix: disable stream muxer write coalescing
See: https://github.com/libp2p/go-libp2p/issues/644
2019-05-23 09:20:47 -07:00
Steven Allen
492baf0d69 ci: update golangci-lint to the latest master
The current version has some build issues.
2019-05-22 13:41:14 -07:00
Steven Allen
7fde2f178a remove yamux read buffer
Accidentally added in #6361. The yamux transport now disables this globally by
default.
2019-05-22 13:28:00 -07:00
Steven Allen
6225024751 dep: update yamux and bitswap
* yamux: reduce goroutines per connection from 3 to 2.
* bitswap:
  - fix a very slow memory leak
  - adds an option for disabling providing (unused for now)
  - fixes a race condition on start
  - tag peers with outstanding requests in the connection manager
2019-05-22 12:52:30 -07:00
Steven Allen
1eb701fd75 dep: update go-libp2p
* Write coalescing in yamux and mplex.
* Correctly tag relay streams.
* Reset relay streams instead of closing them. Fixes #6237.
* Trim connections in a background task instead of on-connect.
2019-05-22 11:55:32 -07:00
Steven Allen
cf3b6c43d2
Merge pull request #6355 from ipfs/fix/6354
commands/swarm(fix): handle empty multiaddrs
2019-05-20 15:47:31 -07:00
Steven Allen
b892db894d dep: update go-multiaddr
Forbids empty multiaddr, fixes #6354
2019-05-20 14:29:26 -07:00
Steven Allen
e35e61d6bc dep: update dependencies
Prepare for release.
2019-05-20 13:28:25 -07:00
Steven Allen
deb7af02ed feat: improve errors when a path fails to parse
This helps with issues like #4190 by telling the user the path that failed to
parse.

fixes #4190
2019-05-17 12:19:15 -07:00
Steven Allen
037382239d build: switch from megacheck to golangci-lint
(which includes megacheck)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:29 -07:00
Steven Allen
598f1fa31e dep: update ipld formats
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 11:28:04 -07:00
Steven Allen
9886fc06fc switch to base32 by default for CIDv1
fixes #6220

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 10:57:53 -07:00
Steven Allen
5f64b270f8 cmdkit -> cmds
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:00:20 -07:00
Steven Allen
857080b5c3
Merge pull request #6308 from ipfs/fix/mfs-regression
Update to latest go-mfs
2019-05-09 15:33:39 -07:00
Steven Allen
5fee47c3bd dep: update goprocess
Fixes some panics.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-09 15:23:38 -07:00
Erik Ingenito
0448c2a714 dep: update go-mfs
fixes https://github.com/ipfs/go-mfs/issues/75

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-09 02:30:39 -07:00
Steven Allen
3c9be59c95 dep: update go-ipfs-cmds
(fixes double printing of errors)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:10:44 -07:00
Steven Allen
cab9ddf1ed ping: don't return success on failed pings
fixes #6298

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 22:54:22 -07:00
Erik Ingenito
227da14e58 Update to latest go-mfs 2019-05-08 12:37:07 -07:00
Steven Allen
59370f890b dep: import goprocess into go modules
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:26 -07:00
Steven Allen
0defe54899 dep: update go-ipfs-config
fixes #6284

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:04 -07:00
Steven Allen
aea5b9ffd7 dep: update multistream
Reduce lock contention

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-30 10:56:45 -07:00
Steven Allen
88e96ec321 dep: update go-libp2p
1. Reduces lock contention in the peerstore.
2. Fixes an ancient secio bug.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-28 12:50:16 -07:00
Steven Allen
dc4c76d9cf dep: drop leb.io/hashland
Instead, golang's keccak and spaolacci's murmur3 (both of which are maintained).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-26 15:58:09 -07:00
Steven Allen
2881809047 dep: update many
* go-ipfs-files: fixes some bugs with WebFile.
* go-unixfs: update murmur3.
* go-libp2p-connmgr: update for peer protection feature.
* base58: reduce allocations from 3 to 2.
* golang.org/x/...: upstream updates.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-26 12:33:43 -07:00
Steven Allen
f3c6b5c57c attempt to fix concurrent websocket write
Unfortunately, I can't reproduce the bug locally and I'm not sure if my fix is
correct. But it shouldn't hurt.

might fix #6197

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-26 02:36:31 -07:00
Steven Allen
6ef015c5a8 dep: update libp2p, dht, peerstore, swarm, secio
* secio: maybe fix an out of bounds read.
* swarm, dht: avoid wasting memory allocating/keeping large errors around.
* peerstore: reduce memory usage

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-25 10:01:47 -07:00
Steven Allen
e898ecd9d8 dep: update libp2p, datastore, and the dht
* fixes https://github.com/ipfs/go-ipfs/issues/5613#issuecomment-479743031
* fixes some relay perf issues
* improves datastore query performance

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-20 16:17:42 -07:00
Marten Seemann
21d46bbe32 add an experiment to prefer TLS 1.3 over secio
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2019-04-17 23:45:00 -07:00
Marten Seemann
ed3729d3ca enable support for TLS handshakes, configure secio as the default
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2019-04-17 23:12:21 -07:00
Łukasz Magiera
bb4b99ef47 Rename lcProcess.Run to Append, add docs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
Łukasz Magiera
2379787ee9 gomod: import uber/fx
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
Łukasz Magiera
7c6a92087d gomod: import dig
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
Łukasz Magiera
21c6e076f5 Update coreiface
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 12:04:25 -07:00
Steven Allen
939685c7e9 dep: update go-libp2p-nat, go-libp2p-peerstore, go-libp2p-circuit
1. Fixes IG NAT detection.
2. Fixes port mapping with NATs that don't properly detect port mapping conflicts.
3. Keep addresses for 2 minutes to make the DHT work more reliably (needed due to the whole dial queue thing).
4. Use a buffer pool in the relay.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-12 10:35:58 -07:00
Steven Allen
9b327227e6 deps: update go-bitswap and go-libp2p-circuit
* go-bitswap: periodically resend wantlists to work around some connection state races.
* go-libp2p-circuit: improve allocations and avoid dialing new peers.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-11 11:23:39 -07:00
Steven Allen
ce985ab77d dep: update go-ipfs-cmds
fixes yet another stdout syncing issue on macos

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-09 15:56:52 -07:00
Steven Allen
5481ac91f2 dep: update autonat
fix a stream leak

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-09 15:55:34 -07:00
Steven Allen
a143947820 dep: update go-libp2p
Fixes a panic in identify's observed address handling.

https://github.com/libp2p/go-libp2p/pull/586

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-09 12:53:37 -07:00
Steven Allen
5bb7c6f7a7
Merge pull request #6196 from ipfs/gomod/iface-v0.0.6
gomod: update interface to v0.0.6
2019-04-09 12:52:27 -07:00
Steven Allen
158c17b102 dep: update libp2p, circuit, leveldb, kbucket
* Update go-libp2p for some identify optimizations.
* Update go-libp2p-circuit for some allocation optimizations.
* Update go-ds-leveldb for some query performance improvements.
* Update go-libp2p-kbucket to fix a really stupid bug.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-09 10:51:50 -07:00
Łukasz Magiera
740b03a43e gomod: update interface to v0.0.6
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-09 15:58:32 +02:00
Marten Seemann
6acb8fdfc3 update QUIC
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2019-04-09 12:58:24 +09:00
Steven Allen
6884fef2cf dep: update quic
fixes #6168

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-04 12:15:24 -07:00
Jakub Sztandera
f08100022c misc: require Go 1.12
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-04-04 16:37:45 +02:00
Steven Allen
0c753cb957 dep: update go-libp2p-kad-dht
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-04 01:29:27 -07:00
Steven Allen
c0873780bb dep: update badger, tcp, ws, autonat, autorelay
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-04 00:54:57 -07:00