Matt Bell
7a579bbf79
commands: Moved files code into 'commands/files' subpackage
2015-01-13 22:50:53 -08:00
Juan Batiz-Benet
b6670da5ac
Merge pull request #557 from jbenet/swarm-fix-racey-test
...
p2p/net/swarm: fix racey test
2015-01-13 22:49:57 -08:00
Juan Batiz-Benet
670b2b59b5
p2p/net/swarm: fix racey test
2015-01-13 22:46:41 -08:00
Juan Batiz-Benet
102c43a3b1
Merge pull request #551 from jbenet/fix-swarm-more-connect
...
p2p/net/swarm: more connection bugs
2015-01-13 09:17:19 -08:00
Juan Batiz-Benet
d9a815b3a0
p2p/net/swarm: nicer test timeouts for travis
2015-01-13 08:42:46 -08:00
Juan Batiz-Benet
1272bb6651
p2p/net/swarm: parallelize tests. poor travis.
2015-01-13 08:16:02 -08:00
Juan Batiz-Benet
baf2541237
p2p/net/swarm: extensive dial tests
2015-01-13 08:15:26 -08:00
Juan Batiz-Benet
7f3a651f5d
p2p/net/swarm: sync diagram explain
2015-01-13 08:14:35 -08:00
Juan Batiz-Benet
f58276d6d2
p2p/net/swarm: async grabbing of best conn
...
this is actually pretty important in case some peers end
up changing addrs, so others dont fail dialing simply for
picking the wrong addr to start with.
2015-01-13 08:13:32 -08:00
Juan Batiz-Benet
9689b280e6
p2p/net/swarm: configurable timeout for tests
2015-01-13 08:12:45 -08:00
Juan Batiz-Benet
af889dc182
p2p/net/swrm: InterfaceListenAddrs now method
2015-01-13 05:58:49 -08:00
Juan Batiz-Benet
70ceaa975d
p2p/net/swarm: dial backoff
...
This commit introduces a backoff when failing to dial
peers. It makes everything much faster.
2015-01-13 05:04:12 -08:00
Juan Batiz-Benet
8de8ed0842
p2p/net/swarm: dial timeout to 10s + dialer
2015-01-13 04:08:08 -08:00
Brian Tiger Chow
e5bd30b349
Merge pull request #546 from jbenet/feat/repo-fsrepo
...
feat(repo): FSRepo
2015-01-13 03:37:53 -08:00
Juan Batiz-Benet
5b4a3c09bd
p2p/net/swarm: more connection bugs
...
* filtering InterfaceListenAddresses(s) instead
* return error if for loops skip
* large dial timeout
2015-01-13 03:32:15 -08:00
Brian Tiger Chow
01f54d6966
refactor(fsrepo.test) use TempDir
...
@jbenet
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
3eafb3e5ab
style(repo): repo.Interface -> repo.Repo
...
The pkg.Interface style is modeled after heap.Interface. Generally, I
find it helpful for interfaces that have many implementations. It
provides clear distinction between the generic interface and the |n|
implementations that implement it (which may be interface types
themselves).
For clients who cannot keep the repo name, one can imagine that the most
likely rename is `ipfsrepo`. In that case, `ipfsrepo.Interface` remains
meaningful.
This is low-pri so it doesn't matter than much. But for the record, the
repo.Interface feels appropriate in this use-case.
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
5705ea9859
style(init): -> errRepoExists
...
@jbenet
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
89afdabb7e
refactor(fsrepo): move OpenerCounter
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
97b865ff6f
fix(init): simpler initialization logic
...
@jbenet this removes everything under the path
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
4aba282379
feat(fsrepo): handle safe Removal
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
3ec5c678ae
fix(updates): record the occurrence of the auto-update check
...
This may have been failing before.
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
899c419ac3
refactor(config): break it apart
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
631d2154f2
fix(fsrepo): use "please run ipfs init" message
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
e84fc5df22
fix(config): avoid clobbering user-provided key value pairs
...
let me know if this looks off @whyrusleeping @jbenet
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
196bc04541
test(bootstrap, config): ensure user-provided keys are protected
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
bbaf70974d
move utility method
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
306c7e2e7b
doc(fsrepo)
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
b54c7de48c
fix(fsrepo): add guard to ConfigKey methods
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
3986af7691
refactor(repo): move public methods
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
47e4a35e6b
refactor(repo): privatize serialization methods
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
86258face6
refactor(config, repo): use repo.Interface to (Get|Set)ConfigKey
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
80c2e97692
refactor(main): use fsrepo to load config
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
53f201cea9
fix(test/sharness/Makefile): remove ipfs binary when cleaning
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
1b700864f9
refactor(repo): all config writes must go through repo
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
405afd2a02
refactor(config, repo): all writes go through FSRepo. next: privatize these
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
c2877b2045
refactor(init, repo): init logs in fsrepo
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
c5da1561b9
check datastore directory when opening the repo for use
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
0d88f70c6e
feat(init): remove datastore path override
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
e28a235f77
it's unclear what this test case is meant to protect, but passing an empty datastore value no longer has bearing on node construction. Datastore setup now occurs in repo.
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
6e730f4c73
bad datastore type won't cause failure
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
20e1610075
nil will no longer be a valid argument
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
fa4cfe8da2
refactor(init, fsrepo): go through repo to write to config
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
a2d1e3395e
refactor(init): write config at top level
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
44f3d95c3b
refactor(repo/fsrepo): use repo to check whether config exists
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
5b3164de5c
refactor(repo/config) move config under repo
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
e9ba183ecb
add test_go_race
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
5cade6a59d
Merge pull request #550 from jbenet/fix-swarm-close-bugs
...
p2p/net/swarm: fixed bugs in swarm err closes
2015-01-13 02:56:41 -08:00
Juan Batiz-Benet
e3eaa154af
p2p/net/swarm: fixed bugs in swarm err closes
2015-01-13 02:37:26 -08:00
Juan Batiz-Benet
9b2ccf1e17
Merge pull request #549 from jbenet/fix-simultaneous-dials
...
p2p/net/swarm: dial once at a time
2015-01-13 01:58:34 -08:00