Juan Batiz-Benet
c2bbca0596
query: fix race condition: redux
...
this time just move to goprocess
2015-03-07 04:08:26 -08:00
Juan Batiz-Benet
7a03d677ff
query: fixed race condition
2015-03-07 02:44:20 -08:00
Juan Batiz-Benet
4dd2e8fde9
fixed dht kbucket race
...
closes #836
2015-03-04 08:28:55 -08:00
Jeromy
523e603e59
error -> debug
2015-02-26 22:05:51 -08:00
Jeromy
7fb63d7e43
move signing options into a validation checker struct
2015-02-26 22:05:03 -08:00
Jeromy
049b5ad945
make signing dht put records optional
2015-02-26 22:05:03 -08:00
Jeromy
3b2bd9bf6a
make the providers manager respect contexts
2015-02-26 18:02:23 -08:00
Juan Batiz-Benet
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
Henry
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
Jeromy
4899d9349c
error -> debug
2015-02-23 21:09:16 -08:00
Jeromy
7e40503020
dont potentially kill our memory
2015-02-23 21:09:16 -08:00
Jeromy
7c0c3c4511
add put and get dht commands to cli
2015-02-23 21:09:16 -08:00
Brian Tiger Chow
17b52a2a66
feat(snrouting) replicate Provider, PutValue to multiple remotes
2015-02-15 04:41:19 -08:00
Brian Tiger Chow
fbad943cd9
feat(snrouting): pick remote based on XOR distance metric
2015-02-15 04:41:19 -08:00
Brian Tiger Chow
de34261b79
fix log
2015-02-15 04:41:18 -08:00
Brian Tiger Chow
0a8e5b9948
log(routing) report boostrap result to user
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
a7cea2ea14
style(routing/supernode/client) fix indent
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
eeae42b5cc
test(snr/s) put
...
fix
2015-02-15 04:41:16 -08:00
Juan Batiz-Benet
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
Brian Tiger Chow
9dd12922b3
refactor(routing) expose Bootstrap() error on routing interface
2015-02-15 04:41:16 -08:00
Brian Tiger Chow
1dfcce9f5a
fix(grc) move Bootstrap method onto routing interface
2015-02-15 04:41:16 -08:00
Brian Tiger Chow
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
Brian Tiger Chow
64a431dd32
ensure we only accept AddProvider records if the peer is the sender
2015-02-15 04:41:15 -08:00
Brian Tiger Chow
6b900d209b
remove todo
...
this functionality is here as an optimization
2015-02-15 04:41:15 -08:00
Brian Tiger Chow
19eb35137b
refactor(routing) rename grandcentral to supernode
...
thanks @mappum
remove .go-ipfs
2015-02-15 04:41:10 -08:00
Brian Tiger Chow
c730e19b5f
rm TODO (there's still one for verifying records)
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
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
Brian Tiger Chow
cfe3a637e4
log(gcr/s) remove local peer in message-received event
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
7ab01d4318
misc(gcr/s) rm TODO
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
0676a9b10b
fix(gcr/s) defer log event
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
ba119fb1f7
doc(gcr/c) comment methods
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
5caa179d69
refactor(gcr/s) extract provider key
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
ebd08f8194
refactor(gcr/s) move declaration
2015-02-14 14:13:56 -08:00
Brian Tiger Chow
450f21a545
fix(gcr/s) de-duplicate routing records
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
e2a3c4d19a
refactor(gcr/s) re-use code from get
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
31eb4cac08
misc(gcr/s) rm unused param
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
ab81d7cbd1
misc(gcr/s) add doc
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
d1df4095ea
fix: don't check routingbackend for value
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
ca268b789e
misc(gcr/s) rm TODO
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
8940b8d4b8
fix(gcr/s) rename datastore to routing backend
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
eb8db2ec79
log(gcr/s,c) add addtional eventlogs
2015-02-14 14:13:55 -08:00
Brian Tiger Chow
4a9ae80791
fix(gcr/c) print a loud error when clients receive routing messages, but don't panic
...
This is an unhandled case. Right now, we close the stream without
reading. Should clients be able to satisfy routing requests?
@jbenet @whyrusleeping
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
d5331e7dc7
feat(gcr/s) add eventlogs
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
9e5b3b7773
refactor(gcr/c) pass host.Host into GCR client
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
ea9ea79459
feat(gcr/c) randomize order of remotes
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
46bbd11e6b
fix(gcr/s,c) register stream handlers
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
d80e9aba7a
feat(gcr/c) add support for multiple servers
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
f8f4dc8e8d
misc(gcr/c) rm TODO
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
0721a58934
fix(gcr/s) proto marshaling bugs
2015-02-14 14:13:54 -08:00
Brian Tiger Chow
a88621aeb1
refac(gcr/s,c) remove network/dialer
...
remove dialer from GCR client
2015-02-14 14:13:53 -08:00