1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

3932 Commits

Author SHA1 Message Date
f74e71f965 fix ugly error message when killing commands 2015-04-12 14:49:45 -07:00
264ada5131 Merge pull request #1061 from ipfs/update-goprocess
updated goprocess to deal with memory leak
2015-04-12 14:30:53 -07:00
78bb5f4937 Merge pull request #1062 from ipfs/bugfix-add-error
bugfix: add was not setting error
2015-04-12 08:02:47 -07:00
69db1b4ec5 bugfix: add was not setting error 2015-04-12 07:53:04 -07:00
dbef4efd38 updated goprocess to deal with memory leak 2015-04-12 04:40:22 -07:00
11a85c7d89 Merge pull request #1058 from ipfs/gateway-head
corehttp: added support for HEAD requests
2015-04-12 02:45:52 -07:00
3c1d78c672 corehttp: added support for HEAD requests
This commit adds HEAD support to the IPFS Gateway.
Related: #840
2015-04-12 02:35:16 -07:00
db79e89ae7 log listeners dying as at least a warning 2015-04-11 18:21:22 -07:00
9bb369b372 [DOCS] Added a nofuse build note for Windows 2015-04-09 22:36:11 -07:00
e4c5440da0 DOCS: Updated FUSE docs 2015-04-09 22:27:04 -07:00
6036b043b1 Merge pull request #1038 from ipfs/reuseport-disable
reuseport: env var to turn it off
2015-04-08 01:29:00 -07:00
f1566e2327 reuseport: env var to turn it off
reuseport is a hack. It is necessary for us to do certain kinds of
tcp nat traversal. Ideally, reuseport would be available in go:

  https://github.com/golang/go/issues/9661

But until that issue is fixed, we're stuck with this. In some cases,
reuseport is strictly a detriment: nodes are not NATed. This commit
introduces an ENV var IPFS_REUSEPORT that can be set to false to
avoid using reuseport entirely:

  IPFS_REUSEPORT=false ipfs daemon

This approach addresses our current need. It could become a config
var if necessary. If reuseport continues to give problems, we should
look into improving it.
2015-04-08 00:19:12 -07:00
20dbea5e5c Merge pull request #1032 from torarnv/cleanup-makefiles
Fix various issues in the test makefiles
2015-04-07 17:51:37 -07:00
f2dd060e4a Don't use wildcards to look for .go files in tests makefile
GNU Make's wildcard function does not recurse into subdirectories when
passed the '**' glob, which results in adding a dependency only to .go
files in the first level of subdirectories under the source root.

We shell out to 'find' instead, which catches all .go files in the
given directory.
2015-04-07 21:22:04 +02:00
7b49419d93 Fix dependencies in sharness test makefile
Running make -jN would result in the tests starting to execute
before the tests binaries were built, resulting in the error:

 "Cannot find the tests' local ipfs tool"

Each test now depends on the deps. They also depend on a new
target for cleaning the test results, so that the tests can
write new clean results.

The aggregate target also needs to depend on the same test
results clean target, as well as the tests themselves, so
that the aggregation happens when all tests have finished
running.

By introducing a separate target for cleaning test results we
also ensure that we don't end up removing and rebuilding
the binary on each test run.

The result is that the tests *can* be run with with -jN > 1,
but individual tests may still not supports this, so to get
stable test results it's still recommended to run them in
sequence.
2015-04-07 21:21:58 +02:00
d36a9eef2b Ensure IPFS-BUILD-OPTIONS build dependency is created
If the file doesn't exist, make will conclude that the missing
prerequisite should trigger a rebuild of the binaries.
2015-04-07 21:09:45 +02:00
096420cb0d Merge pull request #1021 from ipfs/bloom-filter-fix
Make bloom filters simpler
2015-04-07 09:45:11 -07:00
3d8e96a22e Make bloom filters simpler
These did not work before, and had some unnecessary complexity.

Now the filters use only one hashing function, no bignum arithmetic, and gets the additional bit positions by repeatedly hashing the result of prior hash.

Since we're not concerned about crypto hashing here, this should be a win.

External interfaces unchanged.
2015-04-07 18:03:15 +02:00
b041ccdcf3 Merge pull request #1031 from torarnv/unify-shutdown-msg
Unify shutdown message format string
2015-04-07 06:33:15 -07:00
675e2c7f85 Unify shutdown message format string 2015-04-07 14:12:22 +02:00
0c94b6502a Merge pull request #1029 from MichaelMure/patch-2
ipfs-completion.bash: add the missing get command
2015-04-07 04:58:55 -07:00
e8f51c2d57 ipfs-completion.bash: add the missing get command 2015-04-07 13:55:27 +02:00
06c834458d Merge pull request #1028 from torarnv/extend-peer-handshake-logging
Extend logging when peer handshake detects clashing/same keys
2015-04-07 04:32:49 -07:00
0bb4df9d3b Extend logging when peer handshake detects clashing/same keys 2015-04-07 13:20:46 +02:00
f2aba08c9a Merge pull request #1024 from ipfs/run_tests_with_race_flag2
Run tests with race flag using checkflags script
2015-04-07 04:18:54 -07:00
447f1efb61 Merge pull request #1009 from ipfs/refactor/taskqueue
refactor task queue to have queues per peer
2015-04-06 22:22:32 -07:00
30562679e2 Merge pull request #1027 from ipfs/bench/just-cat
Add benchmark for just the time it takes to cat
2015-04-06 21:55:24 -07:00
8450a8d4d8 address comments from CR 2015-04-06 21:49:14 -07:00
76e879c9e0 fix some logic 2015-04-06 21:49:14 -07:00
738db201d9 some code cleanup and commenting 2015-04-06 21:49:14 -07:00
d765c14e8f refactor task queue to have queues per peer 2015-04-06 21:49:14 -07:00
7727309e89 disable archive test 2015-04-06 21:37:48 -07:00
8540f2da80 Add benchmark for just the time it takes to cat 2015-04-06 16:57:52 -07:00
9c3f65709e Merge pull request #1026 from lidel/master
fuse.md: Added troubleshooting instructions for #813
2015-04-06 14:35:28 -07:00
6903e63140 fuse.md: Linux-related clarifications 2015-04-06 23:26:52 +02:00
729e50d312 fuse.md: Added troubleshooting instructions for #813 2015-04-06 22:49:47 +02:00
dbf91a19a1 test/sharness: add GOFLAGS variable and race target
The GOFLAGS variable makes it possible to run all sharness
tests with go binaries built with some special flags.

The "race" target makes it easy run the sharness tests
with go binaries built with the -race flag.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-06 18:06:24 +02:00
61550d08be test: add IPFS-BUILD-OPTIONS to .gitignore
...and remove bin/* stuff from the .gitignore
as /test/bin is already in the root .gitignore.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-06 18:06:24 +02:00
3edd3227fe test: add test_race target to Makefile
This builds go binaries using the -race flag
and then runs all the tests.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-06 18:06:24 +02:00
7edfc784ac test: add GOFLAGS variable to the Makefile
This makes it possible to build binaries with
different flags.

The content of the GOFLAGS variable is stored
in a IPFS-BUILD-OPTIONS file, so that if GOFLAGS
changes a rebuild of the binaries with the new
flags is forced.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-06 18:05:47 +02:00
a2c41e650d test/bin: add checkflags to detect flag changes
This script can be used in a Makefile to detect flag changes
and to save the new flags in a file.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-06 17:59:49 +02:00
8ad4d5031a Merge pull request #1020 from ipfs/fix/query-cmd
handle error from GetClosestPeers
2015-04-06 02:17:24 -07:00
f10c8282c7 handle error from GetClosestPeers 2015-04-06 00:08:28 -07:00
d5c6b1af6b Merge pull request #1019 from theswitch/fix-init-docs
Correct port in quick-start examples
2015-04-05 21:53:43 -07:00
000de03000 Correct port in quick-start examples 2015-04-06 12:39:06 +10:00
07d9cdbd69 Merge pull request #1011 from ipfs/test_sort_cmp
Test sort cmp
2015-04-04 05:52:15 -07:00
c2e9a08098 t0080: use test_sort_cmp()
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-04 07:43:59 +02:00
1f1507106a test: implement test_sort_cmp()
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-04 07:37:37 +02:00
64f6a843b8 Merge pull request #997 from ipfs/hosh/fuse-mount-opts
Fuse allow options
2015-04-02 17:03:02 -07:00
d90ada9b4e Added fuse allow_other option
ipfs config Mounts.FuseAllowOther --bool true
    ipfs daemon --mount
2015-04-02 15:11:27 -07:00