-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add periodic bootstrapping #583
Commits on Jan 23, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 82d38a2 - Browse repository at this point
Copy the full SHA 82d38a2View commit details -
diag/net: io must respect timeout ctx
See the discussion below. A future commit will implement the closer change below, and rebase this one on top. <•jbenet> `n.Diagnostics.GetDiagnostic(time.Second * 20)` is not being respected. should it use a context instead? or is it a timeout because the timeout is sent to other nodes? <•jbenet> oh it's that the io doesnt respect the context so we're stuck waiting for responses. <•jbenet> this is that complex interface point between the world of contexts, and the world of io. ctxutil.Reader/Writer is made for this, but you have to make sure to defer close the stream. (see how dht_net uses it). i'd love to find a safer interface. not sure what it is, but we have to a) respect contexts, and b) allow using standard io.Reader/Writers. Maybe TRTTD <•jbenet> is have ctxutil.Reader/Writer take ReadCloser and WriteClosers and always close them. the user _must_ pass an ioutil. NopCloser to avoid ctxutil closing on you when you dont want it to. <•jbenet> this seems safer to me in the general case.
Configuration menu - View commit details
-
Copy full SHA for c64338a - Browse repository at this point
Copy the full SHA c64338aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 898b969 - Browse repository at this point
Copy the full SHA 898b969View commit details -
net/diag: recursively decrement timeouts.
Not sure this works. we dont have tests for net diag. We should make some. cc @whyrusleeping.
Configuration menu - View commit details
-
Copy full SHA for f627873 - Browse repository at this point
Copy the full SHA f627873View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65b657e - Browse repository at this point
Copy the full SHA 65b657eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8966743 - Browse repository at this point
Copy the full SHA 8966743View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec848c4 - Browse repository at this point
Copy the full SHA ec848c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1493c9d - Browse repository at this point
Copy the full SHA 1493c9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cd975c - Browse repository at this point
Copy the full SHA 9cd975cView commit details -
dht/query: err return NotFound case
When some queries finished, but we got no result, it should be a simple NotFoundError. Only when every single query ended in error do we externalize those to the client, in case something major is going wrong
Configuration menu - View commit details
-
Copy full SHA for 4865361 - Browse repository at this point
Copy the full SHA 4865361View commit details -
dht: kick off all the queries wit every node in our rt
s/kademlia calls for makign sure to query all peers we have in our routing table, not just those closest. this helps ensure most queries resolve properly.
Configuration menu - View commit details
-
Copy full SHA for 5259cf0 - Browse repository at this point
Copy the full SHA 5259cf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e9413b - Browse repository at this point
Copy the full SHA 8e9413bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 773ee2e - Browse repository at this point
Copy the full SHA 773ee2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 010cedf - Browse repository at this point
Copy the full SHA 010cedfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c43f97d - Browse repository at this point
Copy the full SHA c43f97dView commit details -
core/bootstrap: cleaned up bootstrapping
Moved it to its own package to isolate scope.
Configuration menu - View commit details
-
Copy full SHA for d6ce837 - Browse repository at this point
Copy the full SHA d6ce837View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd9c1b6 - Browse repository at this point
Copy the full SHA dd9c1b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d58b2 - Browse repository at this point
Copy the full SHA 95d58b2View commit details -
reprovide: wait a minute before reproviding
Many times, a node will start up only to shut down immediately. In these cases, reproviding is costly to both the node, and the rest of the network. Also note: the probability of a node being up another minute increases with uptime. TODO: maybe this should be 5 * time.Minute
1Configuration menu - View commit details
-
Copy full SHA for 4a5f5e2 - Browse repository at this point
Copy the full SHA 4a5f5e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c33b75 - Browse repository at this point
Copy the full SHA 5c33b75View commit details