- 23 4月, 2015 2 次提交
-
-
fix log callstack for log messages
由 Juan Batiz-Benet 提交于 -
由 Jeromy 提交于
-
- 22 4月, 2015 16 次提交
-
-
Instructions for installing command completion
由 Jeromy Johnson 提交于 -
由 Dylan Powers 提交于
-
由 Dylan Powers 提交于
-
由 Dylan Powers 提交于
-
由 Dylan Powers 提交于
-
由 Dylan Powers 提交于
-
由 Jeromy 提交于
-
implement basic peer discovery using mdns
由 Jeromy Johnson 提交于 -
由 Jeromy 提交于
-
由 Jeromy 提交于
-
由 Juan Batiz-Benet 提交于
-
由 Juan Batiz-Benet 提交于
-
由 Juan Batiz-Benet 提交于
-
sharness: encapsulate ipfs mount
由 Juan Batiz-Benet 提交于 -
test-lib.sh: fix umount calls
由 Juan Batiz-Benet 提交于 -
由 Jeromy 提交于
-
- 21 4月, 2015 16 次提交
-
-
As test directories contain a space, we need to properly quote paths, otherwise we get errors like: ``` umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash is not mounted (according to mtab) umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash is not mounted (according to mtab) ``` instead of: ``` umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash directory.t0030-mount.sh/ipfs is not mounted (according to mtab) umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash directory.t0030-mount.sh/ipns is not mounted (according to mtab) ``` License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
As the ipfs mount call is now encapsulated in a temporary function (see previous commit) its output should not be tempered with by test_must_fail. License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
As described in issue #1109 on OSX some output from test_must_fail unfortunately goes into the "output" file that we use to test the output from "ipfs mount". This patch avoids the above by encapsulating the call to "ipfs mount" into a temporary function. License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
This patch update fixes a few bugs: * harden shutdown logic by @torarnv * daemon locking fixes by @travisperson * don't re-add entire dirs by @whyrusleeping * tests now wait for graceful shutdown by @jbenet * default key size is now 2048 by @jbenet (experimenting with using semver)
由 Juan Batiz-Benet 提交于 -
init: lower default rsa key size to 2048 for now
由 Juan Batiz-Benet 提交于 -
sharness: wait for graceful shutdown
由 Juan Batiz-Benet 提交于 -
I think we should lower the default rsa key size to 2048 for now -- until we have a proper focus on securing everything. It's always a pain for new users to get hung on 4096 rsa key gen, when we have not even made sure we're using the keys perfectly correctly yet. (And 2048 is still considered secure)
由 Juan Batiz-Benet 提交于 -
sharness should only send the kill signal once, as that is what a graceful shutdown should do. in the event that doesn't happen, we should send it again, and then kill -9 to prevent it lingering and messing with other tests.
由 Juan Batiz-Benet 提交于 -
The test_must_fail check fails on osx. (it does not seem to fail on linux). See #1109
由 Juan Batiz-Benet 提交于 -
Harden shutdown logic
由 Juan Batiz-Benet 提交于 -
Check to see if the daemon is currently running
由 Juan Batiz-Benet 提交于 -
由 Travis Person 提交于
-
At this point I think this test should be moved out of this file
由 Travis Person 提交于 -
don't readd entire directories recursively
由 Juan Batiz-Benet 提交于 -
This test to make sure we can't run `ipfs init` while a daemon is currently running.
由 Travis Person 提交于 -
If the daemon is running we do not want to proceed with an an initialization. Return a client error telling the user to kill the daemon before proceeding with the command.
由 Travis Person 提交于
-
- 20 4月, 2015 6 次提交
-
-
由 Jeromy 提交于
-
Instead of just terminating right there and then, we cancel the context, and let the daemon exit cleanly. This make take a few seconds, as the node builder and its child processes do not care too much about the context state while building nodes, but this can be improved by injecting checks for ctx.Done() before time-consuming steps.
由 Tor Arne Vestbø 提交于 -
Instead of assuming the command is the daemon command and closing the node, which resulted in bugs like #1053, we cancel the context and let the context children detect the cancellation and gracefully clean up after themselves. The shutdown logging has been moved into the daemon command, where it makes more sense, so that commands like ping will not print out the same output on cancellation.
由 Tor Arne Vestbø 提交于 -
When the response includes the X-Chunked-Output header, we treat that as channel output, and fire up a goroutine to decode the chunks. This routine need to look for context cancellation so that it can exit cleanly.
由 Tor Arne Vestbø 提交于 -
The context may be cancelled while a request is in flight. We need to handle this and cancel the request. The code is based on the ideas from https://blog.golang.org/context
由 Tor Arne Vestbø 提交于 -
The context passed on from main() may change before we hit callCommand, so setting it in Parse is a bit optimistic.
由 Tor Arne Vestbø 提交于
-