1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 09:59:13 +08:00

8288 Commits

Author SHA1 Message Date
39f0f5f796 Merge pull request #4443 from ipfs/fix/4408
make repo size test pass deterministically
2017-12-03 18:05:26 +01:00
2ee18fad01 Merge pull request #4399 from ipfs/gx/datastore-1.4.0
gx: Update go-datastore to 1.4.0
2017-12-03 05:20:08 +01:00
4fe1bcbffc gx import missing go-libp2p-blankhost dep
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-02 14:55:27 -08:00
6401a9191e gx: Update go-datastore to 1.4.0
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-02 14:55:26 -08:00
4df6385f55 Add trailing comma
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2017-12-02 12:05:55 +00:00
351185382d Update WebUI version
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2017-12-02 12:03:57 +00:00
ba680b10da make sure the repo size is greater than the size of the symlink
Before, we'd check to make sure the repo, when checked through a symlink, is at
least as large as the repo *before* we checked it through the symlink. However,
this assumes that the repo can't shrink.

Really, this test exists to ensure we measure the repo size itself instead of
the size of the symlink; this commit changes the test to reflect this.

This test fails when 54d7e03303f70d88bfaa8a8aee636dd33b2dd491 is reverted.

fixes #4408

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-01 09:56:03 -08:00
bc7124226c Merge pull request #4440 from ipfs/fix/ipns-repub
Fix various IPNS issues
2017-12-01 17:30:06 +01:00
abe8ced8c7 Merge pull request #4433 from ipfs/fix/coreunix-add/ctx
AddWithContext wraps custom context
2017-12-01 17:26:21 +01:00
6917d2f08f build for all supported platforms when testing
fixes #4427

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-30 22:05:06 -08:00
66bde41384 Merge pull request #4047 from vyzo/ipns-pubsub
namesys/pubsub: pubsub Publisher and Resolver
2017-11-30 13:41:38 +01:00
d4add99ada Merge pull request #4437 from ipfs/fix/add-abort-panic
Fix/add abort panic
2017-11-30 13:40:46 +01:00
228c5552ab always obey the IPNS rebroadcast interval if it's smaller
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:54:06 -08:00
fd2d63c5ba document ipns republisher variables
(makes code climate happy)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:46:34 -08:00
40b3a72498 retry publishing IPNS records every 5 minutes on failure
This way, if we *happen* to be offline while attempting a publish, we don't wait
the full interval.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:29:25 -08:00
d8de88c4b6 publish ipns records on start
(after a delay of 1 minute)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:24:27 -08:00
febf21b0c7 fix republish interval documentation
We republish every 4 hours, not 12.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:15:58 -08:00
a3a3179384 fix panic on ipfs add and Ctrl+C
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-29 12:32:51 +01:00
a81025f891 Merge pull request #4434 from ipfs/kevina/test-symlink-test-fail
Increase verboseness of t0088-repo-stat-symlink.sh test.
2017-11-28 11:22:35 -08:00
d2696ed498 Increase verboseness of t0088-repo-stat-symlink.sh test.
Top help track down random test failures.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-11-28 13:45:27 -05:00
96e1315cff AddWithContext wraps custom context
AddWithContext should use the custom context when calling
NewAdder

License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2017-11-28 10:00:47 -08:00
96b87238fe Merge pull request #4425 from ipfs/fix/windows-build-deps
fix builds on windows
2017-11-25 10:58:29 -08:00
971bb01e1b fix builds on windows
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-24 10:37:02 -08:00
b7824ba3ee Merge pull request #4415 from ipfs/cleanup/dead-cmds-code
Delete some now unused commands lib code
2017-11-22 15:09:55 -08:00
9032848e83 Merge pull request #4419 from ipfs/fix/update-cmds
update go-ipfs-cmds to 0.4.11
2017-11-22 13:46:52 -08:00
8e5fbe9aa1 update go-ipfs-cmds to 0.4.11
to include @frist's uuid logging

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-22 19:06:00 +01:00
e1f433e3a8 Merge pull request #4402 from keks/fix/pubsub-flush
core/commands/pubsub.go: flush output before iterating over received messages
2017-11-21 21:30:15 -08:00
1f2247c6bd Merge pull request #4413 from ipfs/fix/cmd-goroutine-leaks
Fix some goroutine leaks in commands
2017-11-21 21:26:44 -08:00
68bb106980 Delete some now unused commands lib code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-21 20:40:24 -08:00
2997f48a67 fix goroutine leaks in repo commands
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 16:17:27 -08:00
016b005333 fix goroutine leaks in DHT commands
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 15:39:37 -08:00
e0f38fa33b Merge pull request #4406 from ipfs/fix/4405
Fix two race conditions (and possibly go routine leaks) in commands
2017-11-21 15:23:39 -08:00
33c82070f2 Merge pull request #4407 from ipfs/fix/4394
fix deadlock in bitswap sessions
2017-11-21 15:21:25 -08:00
586dd6565d Merge pull request #4411 from ipfs/feat/objput-quiet
object: --quiet flag to put
2017-11-21 15:01:36 -08:00
e45df729be namesys/pubsub: publisher and resolver
Commits:
namesys: pubsub Publisher and Resolver
namesys/pubsub: pacify code climate.
namesys/pubsub: timeout for rendezvous
namesys/pubsub: filter self in bootstrap connections
namesys/pubsub: Publish to the correct topic

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: unit  test

Commits:
namesys/pubsub: test
namesys/pubsub_test: pacify code climate
namesys/pubsub: update test to use extant mock routing

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: integrate namesys pubsub

namesys: integrate pubsub resolvers
namesys/pubsub_test: tweak delays
- trying to make travis happy.
namesys/pubsub: fix duplicate bootstraps
- subscription key is topic, not ipnskey.
namesys/pubsub: no warning needed on cancellation
namesys/pubsub: warning for receive errors
- and more informative error messages at that.
namesys/pubsub_test: smaller test
- make it work with seemingly low fdlimits in travis/macosx.
  also, more informative test failures.
namesys/pubsub: add delay to let pubsub perform handshake
namesys/pubsub: update gx imports
namesys/pubsub_test: preconnect publisher, reduce delays
- preconnects the publisher to the receivers in order to avoid bootstrap
  flakiness with connectivity problems in travis.
  reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
namesys/pubsub: drop named return values in resolveOnce
- per review comment.
namesys/pubsub: check errors
namesys/pubsub: store bytes in resolver datastore
namesys/pubsub: resolver Cancel
- for canceling subscriptions, pre whyrusleeping's request.
namesys/pubsub: fix resolution without /ipns prefix
- also improve the logging a bit.
namesys/pubsub: don't resolve own keys through pubsub
namesys/pubsub: signal ErrResolveFailed on resolution failure
namesys/pubsub: use sync datastore, resolver lock only for subs
namesys/pubsub_test: coverage for Cancel

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: parallelize dht and pubsub publishing

Commits:
namesys/pubsub: code cosmetics
namesys: parallelize publishing with dht and pubsub
namesys/pubsub: periodically reprovide topic rendezvous
namesys/pubsub: cancelation for rendezvous goroutine
namesys/pubsub: log ipns record seqno on publish

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: error checking

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: --enable-namesys-pubsub option and management

Commits:
package.json: update go-libp2p-blankhost
namesys: fix stale package imports
update go-testutil
namesys/pubsub: reduce bootstrap provide period to 8hr
namesys/pubsub: try to extract the key from id first
option to enable ipns pubsub: --enable-namesys-pubsub
ipfs name pubsub management subcommands
corehttp/gateway_test: mockNamesys needs to implement GetResolver
pacify code climate

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: pubsub sharness test

test/sharness: test for ipns pubsub
namesys/pubsub: return boolean indicator on Cancel
package.json: remove duplicate entry for go-testutil
update gx deps, testutil to 1.1.12
fix jenkins failure: use tabs in t0183-namesys-pubsub
t0183: use 4 spaces for tabification

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: update for new command interface

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: fix sharness test for broken MacOS echo

echo -n "" should print -n, but hey it's a mac.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-11-21 14:55:54 -08:00
697afddbcc object: --quiet flag to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-21 19:41:00 +01:00
f3a92617f8 core/commands/pubsub.go: flush output before iterating over received messages
License: MIT
Signed-off-by: keks <keks@cryposcope.co>
2017-11-21 10:00:58 -08:00
b18b1e90c2 Merge pull request #4403 from ipfs/feat/secio-update
Update all the things.
2017-11-21 08:51:23 -08:00
d4c54d6858 Merge pull request #4401 from leerspace/docs/config-announce
updating Addresses section
2017-11-21 08:49:32 -08:00
a94755dbc5 fix deadlock in bitswap sessions
This deadlock would happen when calling SessionsForBlock (holding
bitswap.sessLk) while the session's main loop was trying to deregister the
session (taking bitswap.sessLk).

I've also defensively added selects on contexts for two other channel writes
just in case.

fixes #4394

...well, it fixes *a* deadlock showing up in that issue, there may be more.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:28:32 -08:00
bcd25416d9 cmds: rename DefaultVal -> Default, Default -> WithDefault
Propagate change from cmdkit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:49 -08:00
76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
218b29959e Merge pull request #4042 from asymmetric/fix/default-false
remove all instances of `Default(false)`
2017-11-20 21:32:07 -08:00
d89a4b6960 fix concurrent SetError in add command
I believe this also fixes a potential go routine leak (on race).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:35:04 -08:00
65489c1744 fix concurrent SetError in pin command
(segfault)

Also, buffer the response channel. I believe we had a go routine leak here
before.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:34:58 -08:00
a62eb62d2d Merge pull request #4400 from djdv/gx-winmount
Fix orphaned gx dependency
2017-11-20 16:57:54 -08:00
42a0c14f2a adding detail on Announce
Clarifying that the Announce array is only used when non-empty
and will override the default inferred announce addresses.

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-11-20 09:48:19 -06:00
57f544a79c remove all instances of Default(false)
Boolean options always default to false.

License: MIT
Signed-off-by: Lorenzo Manacorda <lorenzo@mailbox.org>
2017-11-20 16:10:15 +01:00
d15fa176cd Fix orphaned gx dependency
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2017-11-20 00:13:35 -05:00
8391abb06b updating Addresses section
config.md: updating the Addresses section

Adding documentation on Announce and NoAnnounce.

Fixing typo in API default value.

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-11-19 20:31:25 -06:00