1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 19:24:14 +08:00

3941 Commits

Author SHA1 Message Date
2329ca117c Formatting bug 2015-04-13 18:56:19 -03:00
ef1ceeab40 Merge pull request #1067 from mlovci/master
Added documentation for docker usage.
2015-04-13 14:02:11 -07:00
94c67bf7ff Formatting README.md for readibility 2015-04-13 17:42:27 -03:00
686bf81444 Changed docker hub source URL 2015-04-13 17:34:37 -03:00
97217c92a5 Added documentation for docker usage. #1052 2015-04-13 12:03:15 -03:00
ed06488e55 Merge pull request #1056 from ipfs/fix/listen_err
log listeners dying as at least a warning
2015-04-12 19:38:49 -07:00
730b00bf56 Merge pull request #1064 from ipfs/fix/interupt-error
fix ugly error message when killing commands
2015-04-12 15:35:37 -07:00
97e1c95370 Merge pull request #1063 from AtnNn/publish-path
Publish by path
2015-04-12 15:00:18 -07:00
233c39ff62 publish by path 2015-04-12 21:51:58 +00:00
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