Matt Bell
9119435cb6
cmd/ipfs: Added gateway server to daemon
2015-01-11 22:15:32 -08:00
Matt Bell
8603e8294f
config: Added a gateway server address
2015-01-11 22:15:32 -08:00
Juan Batiz-Benet
cfbe44004b
Merge pull request #531 from jbenet/ds-query
...
ds-query + ipfs refs local
2015-01-11 21:39:58 -08:00
Juan Batiz-Benet
6a8414bcfb
blockstore Allkeys: ignore non multihash keys
2015-01-11 21:19:47 -08:00
Juan Batiz-Benet
0d059a3881
change block datastore prefix to "/b"
...
the prefix should be as short as possible, as this is a
per-block overhead.
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
7867e01c90
ipfs ping wording
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
f7941e9841
ping: use context
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
374a75b612
refs: tie the contexts together
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
322d6d0b05
cmds: use flushCopy instrad of copychunks
...
@mappum would this work?
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
ddd7540186
cmds: flush output on standard readers
...
cc @mappum can we do this for the copyChunks case?
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
0e2a554c8d
cmds: fix error header output
...
using Header().Set after WriteHeader() has no effect.
cc @mappum
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
92e8a7bcd5
updated datastore for proper query handling
...
Queries now can be cancelled and the resources collected
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
c0cc951118
updated goprocess
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
708e47fcbc
ipfs blocks local command
...
ipfs blocks local returns _all_ local refs. For now this is one
long op. future commits will make it async.
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
da976a5f21
blocks: AllKeys + tests
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
f9ca67ef04
updated datastore (Query)
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
dac2e449a2
Merge pull request #540 from jbenet/listener-fixes
...
fix listener problems
2015-01-11 13:43:27 -08:00
Juan Batiz-Benet
4e2431a0e4
p2p/net/swarm/listener: consume peerstream listeners
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
14b4c8223b
updated peerstream: fixed hanging bug
...
peerstream would hang when it got many temporary errors.
temp errors should not count as an error. Now, it will
only exit when an error is not temporary.
I kept the acceptErr channel because it will no longer
cause a bad hang. The goroutine is exiting, so if it
blocks until acceptErr is read, it's fine. If users
launch tons of listers and see goroutines building up,
they know they should be reading + logging those.
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
b7a4e92121
p2p/net/conn/Listener: ignore conns failed to secure
...
Instead of erroring out, which would break the listener,
we instead log a message and continue. This is not an error,
the internet is a place with lots of probing + connection
failures.
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
4525269cd8
p2p/net/conn/listener: ignore certain errors
...
This should handle early breakages, where a failing connection
would take out the listener entirely.
There are probably other errors we should be handling here,
like secure connection failures.
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
387c0508fe
p2p/net/conn/dialer: added Dialer field
2015-01-11 12:55:33 -08:00
Juan Batiz-Benet
fd3e0bb37c
added temp-err-catcher
2015-01-11 12:55:33 -08:00
Brian Tiger Chow
f44ef3fe8d
Merge pull request #538 from jbenet/refactor/core-construction
...
refactor(core): NewIPFSNode constructor
2015-01-11 01:47:34 -08:00
Brian Tiger Chow
63c0d41614
fix(core): perform sophisticated boostrap operation
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
033e33dadf
feat(core): expose IpfsNode.Resolve
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
223ee4df1a
refactor(core): move Add, Cat to core/io
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
ddf14bee78
refactor(core): replace online bool with mode type
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
130532c532
rm errTODO
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
b0f7143250
refactor(core): distinguish repo.Repo components
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
9d438843bd
refactor(core): distinguish Online services
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
ca8190a889
refactor(core): isolate complex DHT initialization
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
eb6c40d5dd
refactor(core): isolate the complex initialization of PeerHost construction
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
8e42e86d87
hack(core): instantiate peerstore at the end if it hasn't already been instantiated
...
this is a dirty hack
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
707874c3a5
refactor(core): init node.Blocks in shared NewIPFSNode constructor
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
34e8f3ee26
refactor(core): init DAG and its dependents in shared constructor
...
fix: remove merkledag import
may need to squash this commit into the merkledag move commit
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
7fa5d81093
refactor(core): rename
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
91808e18f7
refactor: use core.ConfigOption return type
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
7cebb33e81
fix: remove dead code
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
5c46597c53
use the core.NewIPFSNode constructor
...
NB: all commits (from master) pass tests up to this point.
fix: squashme into use core constructor
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
401b8f413d
misc: move initialization sqaush
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
efb75ee5ba
refactor: move add and cat to the core
2015-01-11 01:23:25 -08:00
Brian Tiger Chow
85401d53fd
refactor: use the Core in the integration test
2015-01-11 01:23:25 -08:00
Brian Tiger Chow
2c3fb43350
feat: expose IpfsNode.Bootstrap() method
2015-01-11 01:23:25 -08:00
Brian Tiger Chow
4c2eda2123
refactor: remove deprecated function
2015-01-11 01:23:25 -08:00
Brian Tiger Chow
57b3ffa533
feat: new core constructor + config options (Standard, Online, Offline)
2015-01-11 01:23:25 -08:00
Brian Tiger Chow
007ffd40bd
refactor: move LatencyConfig
2015-01-11 01:23:25 -08:00
Brian Tiger Chow
836e5cab6d
Merge pull request #539 from jbenet/bitswap/tweak
...
early out if no entries in wantlist
2015-01-11 00:51:53 -08:00
Jeromy
a09854db97
early out if no entries in wantlist
2015-01-11 08:09:37 +00:00
Juan Batiz-Benet
456719ede7
Merge pull request #523 from jbenet/feat/ping
...
Implement ipfs ping
2015-01-10 08:11:03 -08:00