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

5422 Commits

Author SHA1 Message Date
0396fb967a bump kvalue from 10 to 20
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-10 16:07:06 -08:00
400a1aec7b Merge pull request #2316 from ipfs/fix/random-bstest-hangs
wait for peers in wantmanager to all appear
2016-02-09 14:02:21 -08:00
eaa4ff0ce9 Merge pull request #2318 from rwcarlsen/fix-closenotify-panic2
fix another panic where CloseNotify was called from wrong goroutine
2016-02-09 11:38:22 -08:00
5367ee76d0 fix another panic where CloseNotify was called from wrong goroutine
panic: net/http: CloseNotify called after ServeHTTP finished

    goroutine 180 [running]:
    net/http.(*response).CloseNotify(0xc8220684e0, 0x0)
        /home/r/go/src/net/http/server.go:1535 +0x9d
    github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/prometheus/client_golang/
        /home/r/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/prome
    github.com/ipfs/go-ipfs/core/corehttp.(*gatewayHandler).getOrHeadHandler.func1(0x7
        /home/r/src/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:119 +
    created by github.com/ipfs/go-ipfs/core/corehttp.(*gatewayHandler).getOrHeadHandle
        /home/r/src/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:123 +

License: MIT
Signed-off-by: Robert Carlsen <rwcarlsen@gmail.com>
2016-02-09 11:09:43 -06:00
37258a262b Merge pull request #2196 from ipfs/feat/mfs-flush-cmd
Add flush command to ipfs files
2016-02-08 16:10:36 -08:00
c73da8486a wait for peers in wantmanager to all appear
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 15:59:22 -08:00
4c02c98227 Merge pull request #2315 from rwcarlsen/fix-closenotify-panic
fix go1.6rc2 panic where closenotify was called from wrong goroutine
2016-02-08 15:22:44 -08:00
c47e12ebb1 clear up comment about flush=false
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:47:54 -08:00
4b7e3282f1 introduce concept of filedescriptors to mfs, adjust fuse code to use them
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:45:44 -08:00
5474e15e93 blockstore locks return unlocker object now
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
829606a9ed add note about flush flag
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
b078915fb4 add context to files reading
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
b4a47e35db sort ListNames output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
5fcd9a1f8e use correct context in pubfunc pinning
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
d2e0d73bd5 flush pinning improvements
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
1feea8bc5f flushing and shallow list names
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
ed23d99d6f fix panic where closenotify was called from wrong goroutine
Previously, this was the result when running a test with go1.6rc2:

    go test github.com/ipfs/go-ipfs/commands/http
    panic: net/http: CloseNotify called after ServeHTTP finished

    goroutine 19 [running]:
    net/http.(*response).CloseNotify(0xc8202ca1a0, 0x0)
        /home/r/go/src/net/http/server.go:1533 +0x9d
    github.com/ipfs/go-ipfs/commands/http.internalHandler.ServeHTTP.func2(0x7f42c9d1d180, 0xc8202ca1a0, 0x7f42c9d66e90, 0xc8200f0380, 0xc8201d40d0)
        /home/r/src/github.com/ipfs/go-ipfs/commands/http/handler.go:143 +0x39
    created by github.com/ipfs/go-ipfs/commands/http.internalHandler.ServeHTTP
        /home/r/src/github.com/ipfs/go-ipfs/commands/http/handler.go:147 +0x49d
    FAIL	github.com/ipfs/go-ipfs/commands/http	0.013s

I had also encountered this panic when trying to use the webui.

License: MIT
Signed-off-by: Robert Carlsen <rwcarlsen@gmail.com>
2016-02-08 15:49:58 -06:00
e9cc395ef2 Merge pull request #2296 from noffle/clean_unmount
Mounts detect unmounts and track mount state.
2016-02-08 13:22:45 -08:00
1aeec4a710 Merge pull request #2314 from ipfs/docs/publish-lifetime
Added note about time formatting
2016-02-08 12:07:36 -08:00
471d4d10eb Merge pull request #2311 from ipfs/feature/fix-up-ipfs-file-comments
Fixed spelling errors, added oxford comma
2016-02-08 12:07:20 -08:00
f3d754c8e0 Merge pull request #2307 from ipfs/feature/diag-net-comments
Formatted diag net comments
2016-02-08 09:15:43 -08:00
598ea5ed50 Added note about time formatting
This closes #2312

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-08 09:46:47 -05:00
40a49c8399 Mounts detect unmounts and track mount state.
This lets FUSE mounts to track whether they are active or not by
tracking when fs.Serve terminates.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-07 19:54:59 -08:00
537cd48337 Merge pull request #2310 from ipfs/docs/install-tips
add some tips for making dep installs go smoothly
2016-02-06 19:51:35 -08:00
93b6725220 Fixed spelling errors, added oxford comma
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-06 18:11:17 -05:00
7b1aa49c75 Added quotes around make install,
reworded

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-06 17:27:52 -05:00
455a785865 add some tips for making dep installs go smoothly
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-06 04:48:01 -08:00
5a0b8023be Merge pull request #2256 from ipfs/feat/gx-libp2p
vendor libp2p with gx
2016-02-05 16:52:02 -08:00
337313845d add deps target to nofuse
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-05 16:00:57 -08:00
5c5ad7ad71 note in assets test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-05 16:00:29 -08:00
c9b83c506c makefile fixes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-05 15:50:40 -08:00
d3b1bb4e10 Formatted diag net comments
Also added default notice aboue plain text

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-05 18:21:48 -05:00
ffc4831bcc Merge pull request #2302 from ipfs/feature/gx-libp2p-readme-edits
Cleaned up README
2016-02-05 12:30:20 -08:00
546fabd9a9 Merge pull request #2300 from ipfs/feature/add-example-to-id
Added an example to `ipfs id`
2016-02-05 12:22:07 -08:00
9ade2109ed Cleaned up README
I did the following:
- Capitalized IPFS wherever it did not explicitely refer to the CLI command
- Moved Dev Dependencies into the Install section
- Added a Table of Contents
- Capitalised and added periods to various sentences
- Capitalised Go
- Removed double empty lines
- Reindented a few sections to make the flow more clear.
- Added a note to the Install section about how to canonically install.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-05 11:08:12 -05:00
062b3438a2 Added an example to ipfs id
I was super confused how to use the `-f` flag. This helped, but I had to go into
the test files to find it. Added it here.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-05 11:05:51 -05:00
ce0d62dca3 docker: save image space by excluding .git/
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-05 04:03:30 +01:00
c103efc1a9 sharness: disable t0300-docker-image on Circle CI
The actual tests for the IPFS daemon within the image,
which were added in the previous commits, made Circle CI unhappy.

Circle CI runs an old version of Docker
which still uses LXC instead of libcontainer.
The existing lxc-attach hack is testament to that.

We might be able to get it work [1][2]
but it's really not worth it at the moment,
and Circle CI isn't a good option for Docker things, right now.

[1] https://jpetazzo.github.io/2014/03/23/lxc-attach-nsinit-nsenter-docker-0-9/
[2] https://github.com/jpetazzo/nsenter

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-05 03:11:50 +01:00
0de7104335 Merge pull request #2221 from rht/fix/gc-panic
Wire ctx to getdag operations in gc.GC
2016-02-04 16:13:06 -08:00
881ec275ae Merge pull request #2297 from ipfs/t0240-improvements
t0240 improvements
2016-02-04 16:10:26 -08:00
9300af5c58 Merge pull request #2285 from ipfs/docs/cleanup-id-mans
Cleaned up `ipfs id` mans
2016-02-04 15:12:28 -08:00
91322346e2 t0240: improvements
This:

- uses startup_cluster() from iptb-lib.sh,
- avoids running test_expect_success() inside test_expect_success()
  as it makes the output confusing,
- makes the number of test nodes easily configurable.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-04 22:42:02 +01:00
78f2f10ccf iptb-lib: small improvements
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-04 22:32:49 +01:00
268ec7899c Merge pull request #2292 from ipfs/docs/optional-template
Changed wording to make optional stand out
2016-02-04 10:47:36 -08:00
db4add4edb Merge pull request #2294 from ipfs/feat/active-clear
command to clear inactive requests from request log
2016-02-04 10:47:10 -08:00
81c8cffee9 Rework the Dockerfile
- Have two Dockerfiles doing essentially the same,
  but optimized for build time (for tests)
  and image size (for Docker Hub)
- Fetch gx dependencies
- Expose port 4002 for utp
- Specify go version, currently 1.5.3-r0
- Create ephemeral fs-repo if none is mounted
- Have t0300-docker-image actually test IPFS, not just an echo
- Make everything a bit less hardcoded
- Remove dead shacheck

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-04 10:46:26 -08:00
b11abe283b Merge pull request #2267 from rht/wire/ctx-http-request-2
Directly wire ctx into http request
2016-02-04 10:24:26 -08:00
1e1c89c2a8 command to clear inactive requests from request log
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-04 10:04:04 -08:00
2c0846c8e9 Changed wording to make optional stand out
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-04 09:48:16 -05:00
15d827b912 reword error message to confuse whyrusleeping less
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-03 11:40:13 -08:00