1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-15 19:37:28 +08:00

425 Commits

Author SHA1 Message Date
140cd1fd1b remove debugerrors
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.

It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
e186e740de move log messages out of warning level 2015-04-13 19:48:55 -07:00
d749930dfb dht-handlers-log-keys 2015-04-02 03:02:23 -07:00
bb1b0d50e0 Address comments from PR 2015-03-31 18:17:58 -07:00
97aeda9ae8 cache public keys and use better method for fetching 2015-03-31 18:17:58 -07:00
5e3f9f3574 Merge pull request #986 from ipfs/feat/dht-bw-usage
reduce dht bandwidth consumption
2015-03-31 18:15:18 -07:00
bf22aeec0a Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
a437240989 reduce dht bandwidth consumption
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-03-30 07:54:17 -07:00
60b18d3ad1 dht: tone down dht bootstrap
move to a less aggressive period. 5m instead of 20s
2015-03-19 04:02:00 -07:00
7ad8dd8523 ignore bootstrap failures in namesys initialization 2015-03-17 21:57:57 -07:00
1d5b903611 added cancel func calls previously ignored 2015-03-07 09:31:46 -08:00
435e8188a3 don't ignore returned cancelFunc() 2015-03-07 14:47:07 +01:00
c2bbca0596 query: fix race condition: redux
this time just move to goprocess
2015-03-07 04:08:26 -08:00
7a03d677ff query: fixed race condition 2015-03-07 02:44:20 -08:00
4dd2e8fde9 fixed dht kbucket race
closes #836
2015-03-04 08:28:55 -08:00
523e603e59 error -> debug 2015-02-26 22:05:51 -08:00
7fb63d7e43 move signing options into a validation checker struct 2015-02-26 22:05:03 -08:00
049b5ad945 make signing dht put records optional 2015-02-26 22:05:03 -08:00
3b2bd9bf6a make the providers manager respect contexts 2015-02-26 18:02:23 -08:00
88dea5771d Merge pull request #819 from jbenet/x_net_context_leeroy
update context imports to golang.org/x/net
2015-02-25 03:17:28 -08:00
92d08db7a5 rewrote import paths of go.net/context to use golang.org/x/context
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go

- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo

- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)

Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.

Andrew Gerrand (1):
go.net: use golang.org/x/... import paths

Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.

Damien Neil (1):
context: fix removal of cancelled timer contexts from parent

David Symonds (2):
context: Fix WithValue example code.
net: add import comments.

Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
4899d9349c error -> debug 2015-02-23 21:09:16 -08:00
7e40503020 dont potentially kill our memory 2015-02-23 21:09:16 -08:00
7c0c3c4511 add put and get dht commands to cli 2015-02-23 21:09:16 -08:00
17b52a2a66 feat(snrouting) replicate Provider, PutValue to multiple remotes 2015-02-15 04:41:19 -08:00
fbad943cd9 feat(snrouting): pick remote based on XOR distance metric 2015-02-15 04:41:19 -08:00
de34261b79 fix log 2015-02-15 04:41:18 -08:00
0a8e5b9948 log(routing) report boostrap result to user 2015-02-15 04:41:17 -08:00
a7cea2ea14 style(routing/supernode/client) fix indent 2015-02-15 04:41:17 -08:00
eeae42b5cc test(snr/s) put
fix
2015-02-15 04:41:16 -08:00
cc8ed14e7a bootstrap: update bootstrapping process.
Note: the dht-specific part of the bootstrap function
was only there to make sure to call `dht.Update(ctx, npeer)`.
This already happens on all new connections made by the
network, as the dht is signed up for notifications.
2015-02-15 04:41:16 -08:00
9dd12922b3 refactor(routing) expose Bootstrap() error on routing interface 2015-02-15 04:41:16 -08:00
1dfcce9f5a fix(grc) move Bootstrap method onto routing interface 2015-02-15 04:41:16 -08:00
2298cf66cf test GetPutRecord
validate doesn't work. the peer's public key is not present in the
peerstore.
2015-02-15 04:41:16 -08:00
64a431dd32 ensure we only accept AddProvider records if the peer is the sender 2015-02-15 04:41:15 -08:00
6b900d209b remove todo
this functionality is here as an optimization
2015-02-15 04:41:15 -08:00
19eb35137b refactor(routing) rename grandcentral to supernode
thanks @mappum

remove .go-ipfs
2015-02-15 04:41:10 -08:00
c730e19b5f rm TODO (there's still one for verifying records) 2015-02-14 14:13:56 -08:00
71392dfd28 remove TODO
@jbenet when returning values for records, when would it make sense to
also return providers for the records?
2015-02-14 14:13:56 -08:00
cfe3a637e4 log(gcr/s) remove local peer in message-received event 2015-02-14 14:13:56 -08:00
7ab01d4318 misc(gcr/s) rm TODO 2015-02-14 14:13:56 -08:00
0676a9b10b fix(gcr/s) defer log event 2015-02-14 14:13:56 -08:00
ba119fb1f7 doc(gcr/c) comment methods 2015-02-14 14:13:56 -08:00
5caa179d69 refactor(gcr/s) extract provider key 2015-02-14 14:13:56 -08:00
ebd08f8194 refactor(gcr/s) move declaration 2015-02-14 14:13:56 -08:00
450f21a545 fix(gcr/s) de-duplicate routing records 2015-02-14 14:13:55 -08:00
e2a3c4d19a refactor(gcr/s) re-use code from get 2015-02-14 14:13:55 -08:00
31eb4cac08 misc(gcr/s) rm unused param 2015-02-14 14:13:55 -08:00
ab81d7cbd1 misc(gcr/s) add doc 2015-02-14 14:13:55 -08:00
d1df4095ea fix: don't check routingbackend for value 2015-02-14 14:13:55 -08:00