1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 01:52:26 +08:00

2691 Commits

Author SHA1 Message Date
0e2a554c8d cmds: fix error header output
using Header().Set after WriteHeader() has no effect.
cc @mappum
2015-01-11 20:52:33 -08:00
92e8a7bcd5 updated datastore for proper query handling
Queries now can be cancelled and the resources collected
2015-01-11 20:52:33 -08:00
c0cc951118 updated goprocess 2015-01-11 16:59:22 -08:00
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
da976a5f21 blocks: AllKeys + tests 2015-01-11 16:59:22 -08:00
f9ca67ef04 updated datastore (Query) 2015-01-11 16:59:22 -08:00
dac2e449a2 Merge pull request #540 from jbenet/listener-fixes
fix listener problems
2015-01-11 13:43:27 -08:00
4e2431a0e4 p2p/net/swarm/listener: consume peerstream listeners 2015-01-11 12:55:33 -08:00
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
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
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
387c0508fe p2p/net/conn/dialer: added Dialer field 2015-01-11 12:55:33 -08:00
fd3e0bb37c added temp-err-catcher 2015-01-11 12:55:33 -08:00
f44ef3fe8d Merge pull request #538 from jbenet/refactor/core-construction
refactor(core): NewIPFSNode constructor
2015-01-11 01:47:34 -08:00
63c0d41614 fix(core): perform sophisticated boostrap operation 2015-01-11 01:23:27 -08:00
033e33dadf feat(core): expose IpfsNode.Resolve 2015-01-11 01:23:27 -08:00
223ee4df1a refactor(core): move Add, Cat to core/io 2015-01-11 01:23:27 -08:00
ddf14bee78 refactor(core): replace online bool with mode type 2015-01-11 01:23:27 -08:00
130532c532 rm errTODO 2015-01-11 01:23:27 -08:00
b0f7143250 refactor(core): distinguish repo.Repo components 2015-01-11 01:23:27 -08:00
9d438843bd refactor(core): distinguish Online services 2015-01-11 01:23:27 -08:00
ca8190a889 refactor(core): isolate complex DHT initialization 2015-01-11 01:23:27 -08:00
eb6c40d5dd refactor(core): isolate the complex initialization of PeerHost construction 2015-01-11 01:23:27 -08:00
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
707874c3a5 refactor(core): init node.Blocks in shared NewIPFSNode constructor 2015-01-11 01:23:26 -08:00
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
7fa5d81093 refactor(core): rename 2015-01-11 01:23:26 -08:00
91808e18f7 refactor: use core.ConfigOption return type 2015-01-11 01:23:26 -08:00
7cebb33e81 fix: remove dead code 2015-01-11 01:23:26 -08:00
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
401b8f413d misc: move initialization sqaush 2015-01-11 01:23:26 -08:00
efb75ee5ba refactor: move add and cat to the core 2015-01-11 01:23:25 -08:00
85401d53fd refactor: use the Core in the integration test 2015-01-11 01:23:25 -08:00
2c3fb43350 feat: expose IpfsNode.Bootstrap() method 2015-01-11 01:23:25 -08:00
4c2eda2123 refactor: remove deprecated function 2015-01-11 01:23:25 -08:00
57b3ffa533 feat: new core constructor + config options (Standard, Online, Offline) 2015-01-11 01:23:25 -08:00
007ffd40bd refactor: move LatencyConfig 2015-01-11 01:23:25 -08:00
836e5cab6d Merge pull request #539 from jbenet/bitswap/tweak
early out if no entries in wantlist
2015-01-11 00:51:53 -08:00
a09854db97 early out if no entries in wantlist 2015-01-11 08:09:37 +00:00
456719ede7 Merge pull request #523 from jbenet/feat/ping
Implement ipfs ping
2015-01-10 08:11:03 -08:00
6699d92977 Merge pull request #534 from jbenet/swarm-filter-addrs
core: make sure to call swarm.FilterAddrs
2015-01-10 08:10:56 -08:00
1bd69b19ac core: make sure to call swarm.FilterAddrs
also move network setup into its own self-contained func
2015-01-10 08:07:19 -08:00
66f1a5a9bb Merge pull request #521 from jbenet/linkblock_size
linkblock size calc test
2015-01-10 07:56:14 -08:00
136ef70f00 calc_test for picking link block size 2015-01-10 01:22:45 -08:00
edd7062c56 mark ipns as readonly 2015-01-10 01:22:44 -08:00
6b308292e7 go humanize 2015-01-10 01:11:10 -08:00
5b6c44fd60 Merge pull request #533 from jbenet/fix-osx-mount
osxfuse: fix version check
2015-01-10 01:10:38 -08:00
538550f8f8 fix osx mounting version checks 2015-01-10 01:07:43 -08:00
01f9ef3c54 added fuseversion for osxfuse 2015-01-10 01:07:43 -08:00
05a0a944ce makefile: fix target in sharness tests 2015-01-10 01:07:43 -08:00