1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

8225 Commits

Author SHA1 Message Date
eb9a04573c document gx release checklist item
License: MIT
Signed-off-by: Brendan O'Brien <sparkle_pony_2000@qri.io>
2017-12-11 13:31:41 -05:00
cca71b6db8 Merge pull request #4469 from ipfs/kevina/fix-4467
Always set IPFS_PATH in test-lib.sh
2017-12-09 18:57:32 +01:00
7fd7ab6929 Merge pull request #4472 from ipfs/fix/4470
Demote bitswap error to an info
2017-12-09 18:57:10 +01:00
72582c9a37 Demote bitswap error to an info
Not being able to dial a peer we used to be connected to is interesting but
definitely not an error.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-08 14:04:34 -08:00
8b90b70b1c Merge pull request #4458 from ipfs/fix/bitswap-nits
bitswap nits
2017-12-08 23:00:55 +01:00
2aeaf6309d Always set IPFS_PATH in test-lib.sh
Before it was only set when "test_init_ipfs" is called but that is
not always used, for example in t0025-datastores.sh.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-12-08 14:12:26 -05:00
a4f9333463 Merge pull request #4460 from ipfs/fix/object-patch-nonpb
object-patch: Support linking to non-dagpb objects
2017-12-08 00:10:54 +01:00
550fef8db1 merkledag/utils: switch copyDag to node.Node
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-07 22:27:20 +01:00
5d30b4f34a object-patch: test resolving ipld objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-07 21:34:01 +01:00
4d41235598 Merge pull request #4428 from ipfs/feat/namesys-logging
Refine gateway and namesys logging
2017-12-07 21:00:56 +01:00
93151d4c33 bitswap: fewer allocations in bitswap sessions
Also, don't call time.Now in a loop.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
15c734188f bitswap: better wantmanager allocation patterns
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
0c91b183eb bitswap: preallocate cid string array
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
a589470329 bitswap: better allocation patters in message
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
36cf839a55 bitswap: remove useless code
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
764cbe1c5b bitswap: better wantlist allocation patterns
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
cb2ed89252 bitswap: defer unlock when possible
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
0f8155b668 bitswap: preallocate peers array on bitswap stat
Avoids lots of reallocations under a lock.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-07 11:43:58 -08:00
55692ac9b6 gateway: degrade most logging to debug level
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-12-07 00:21:57 +01:00
5d6b3c5701 namesys: degrade most logging to debug level
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-12-07 00:21:57 +01:00
9aab19ea35 object-patch: Support linking to non-dagpb objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
bbdbd0ac6f Merge pull request #4398 from ipfs/fix/hamt-bug
fix hamt delete issue
2017-12-05 20:53:51 +01:00
715bd16e0e Merge pull request #3801 from hoenirvili/refactor-code
Safe check rlimit syscall and refactoring
2017-12-05 18:34:51 +01:00
f16ada6159 This patch contains more safe checking in syscall rlimit and unit tests
The soft limit is the value that the kernel enforces for the corresponding resource
The hard limit acts as a ceiling for the soft limit
an unprivileged process may only set its soft limit to a value
in the range from 0 up to the hard limit.
So in order to make the change in fds count without any error we should
inform the user to make the process have CAP_SYS_RESOURCE capability
in order to set the hard limit.

License: MIT
Signed-off-by: hoenirvili <hoenirvili@gmail.com>
2017-12-04 17:27:00 -05:00
a234c56bec Merge pull request #3983 from ivan386/patch-3
check strong and weak ETag validator
2017-12-04 20:36:43 +01:00
e8cad12465 Merge pull request #4445 from ipfs/fix/4427
build for all supported platforms when testing
2017-12-04 20:12:55 +01:00
6104cfdf7d Merge pull request #4449 from hacdias/patch-1
Update WebUI version
2017-12-04 20:03:59 +01:00
76e4dcf757 appease codeclimate
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-04 10:59:57 -08:00
c7eddabd43 Merge pull request #4451 from ipfs/fix/better-pinning
Pinning fixes
2017-12-04 18:51:07 +01:00
bee2ba386b Merge pull request #4454 from ipfs/fix/get-error-4452
Fix error handling in commands add and get
2017-12-04 18:44:48 +01:00
1a75c40f5b require go1.9
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-04 09:33:20 -08:00
6f82f08611 fix error handling in core/commands/{add,get}.go
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-12-04 14:27:34 +01:00
9a335cee13 fewer allocations on unpin
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:05:05 -08:00
498ee0dc0b resolve and pin in one step
instead of resolving all the pins first and then pinning, pin after resolving
each pin.

This:

1. Avoids storing all the nodes in memory.
2. Avoids not showing pin progress.

fixes #4122

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:03:04 -08:00
924b2a0a34 don't add nodes to DAG twice.
Now that we add nodes to the DAG when pinning, don't bother adding them twice.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:09 -08:00
953b610470 add node to dagserv under lock
Otherwise, we could run a GC between adding and pinning.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:09 -08:00
8e780d2304 don't create a new context per pin
This came from an old commit that used a TODO context. Now that we have a real
context, use that.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:08 -08:00
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