Arceliar
|
1ac3a18aab
|
Fix a typo in search.go's comments
|
2020-03-23 18:03:31 -05:00 |
|
Arceliar
|
a09a83530f
|
update search description in comments
|
2020-03-22 18:42:42 -05:00 |
|
Arceliar
|
b651e57203
|
allow searches to continue as long as the next hop is closer than the Nth closest node found so far where N is currently 16 instead of 1 (makes searches more reliable), and cache all intermediate search steps in the dht
|
2020-03-19 21:11:17 -05:00 |
|
Arceliar
|
657777881b
|
actually schedule the search cleanup code to run
|
2020-02-08 20:33:35 -06:00 |
|
Arceliar
|
8e05c6c6a7
|
better search cleanup, but needs more testing to make sure it really works
|
2020-02-08 20:26:37 -06:00 |
|
Arceliar
|
d0e6846173
|
work in progress to make searches use parallel threads per response, so one malicious node doesn't block progress from honest ones
|
2020-02-08 20:15:48 -06:00 |
|
Arceliar
|
d7d0c2629c
|
don't deduplicate search responses, but limit the max number of nodes handled per response
|
2020-02-08 17:04:00 -06:00 |
|
Arceliar
|
cd9613fddc
|
add some additional debug timing info and logging to dials, and fix an unnecessary delay in search startup
|
2020-02-07 22:34:54 -06:00 |
|
Arceliar
|
3faa0b2854
|
deduplicate the list of nodes to visit in a search (keeping newest rumors)
|
2020-02-06 20:47:53 -06:00 |
|
Arceliar
|
7c2cb9a02d
|
more search fixes/updates
|
2020-02-06 20:21:17 -06:00 |
|
Arceliar
|
cd856426e5
|
search timing changes
|
2020-02-06 18:37:58 -06:00 |
|
Arceliar
|
70659bfb91
|
sort search response results before sending requests
|
2020-02-06 17:38:42 -06:00 |
|
Arceliar
|
7e64f54c1f
|
log some info about searches and reduce search traffic (especially when things dead-end)
|
2020-02-01 13:58:08 -06:00 |
|
Arceliar
|
c3b1a6af65
|
some nodeinfo actor fixes and adjust search timeout
|
2020-01-06 18:37:43 -06:00 |
|
Arceliar
|
8513f8f4dc
|
constant space searches that should play nicer if searching for an unreachable destination
|
2020-01-04 16:08:48 -06:00 |
|
Arceliar
|
9fac5355eb
|
make searches more parallel
|
2019-12-25 18:55:29 -06:00 |
|
Dimitris Apostolou
|
73f50af3b7
|
Fix typos
|
2019-11-29 11:45:02 +02:00 |
|
Arceliar
|
6d3aefb825
|
fix a data race when an existing session's coords are updated in response to a successful search
|
2019-10-27 19:55:35 -05:00 |
|
Arceliar
|
3491292599
|
code cleanup
|
2019-10-12 15:46:56 -05:00 |
|
Arceliar
|
31ce854835
|
update session when a search for an existing session finishes
|
2019-10-12 15:37:40 -05:00 |
|
Arceliar
|
8c52ccadf9
|
make dial fail if a session to the same node already exists, fixes race between simultaneous connections to a node's 200 address and one of its 300 addresses, should also fix races between a search and an accepted listen
|
2019-09-01 14:07:00 -05:00 |
|
Neil Alexander
|
fc9a1c6c31
|
Simplify reconfiguration
|
2019-08-28 19:31:04 +01:00 |
|
Arceliar
|
3845f81357
|
update to latest phony, adjust interface use accordingly
|
2019-08-27 19:43:54 -05:00 |
|
Arceliar
|
502f2937a9
|
a couple race fixes and use timer.AfterFunc instead of sleeping goroutines or ticker in a few places
|
2019-08-25 17:00:02 -05:00 |
|
Arceliar
|
a3d4d8125b
|
make the main library reconfiguration more actor-friendly
|
2019-08-25 12:10:59 -05:00 |
|
Arceliar
|
5bb85cf07b
|
refactor searches to store a pointer to router instead of core
|
2019-08-23 20:42:38 -05:00 |
|
Arceliar
|
9835c63818
|
refactor things the router owns (dht, sessions, searches) into that struct, to make the ownership more explicit
|
2019-08-23 20:26:15 -05:00 |
|
Arceliar
|
bbcbbaf3b1
|
start migrating sessionInfo to be an actor
|
2019-08-23 20:05:18 -05:00 |
|
Arceliar
|
9d7e7288c6
|
start migrating the router to an actor
|
2019-08-23 18:47:15 -05:00 |
|
Arceliar
|
277da1fe60
|
make sure searches don't end if try to continue (in parallel) with nowhere left to send, but we just sent a search and are still waiting for a response
|
2019-08-11 13:11:14 -05:00 |
|
Arceliar
|
7a28eb787e
|
try to fix a few edge cases with searches that could lead them to ending without the callback being run or without cleaning up the old search info
|
2019-08-11 13:00:19 -05:00 |
|
Arceliar
|
e5bb9bcb8d
|
change how searches are initialized so we actually send a dhtReq to ourself and get a response, in case we're the destination
|
2019-07-26 17:44:40 -05:00 |
|
Arceliar
|
e88bef35c0
|
get rid of old buffered session packets
|
2019-06-28 20:02:58 -05:00 |
|
Arceliar
|
5df110ac79
|
make Dial block until the search finishes, and use it as such
|
2019-06-28 18:42:31 -05:00 |
|
Arceliar
|
29a0f8b572
|
some minor refactoring to dht callbacks and searches, work in progress
|
2019-06-25 19:31:29 -05:00 |
|
Neil Alexander
|
9778f5d2b8
|
Fix search behaviour on closed Conns, various other fixes
|
2019-04-22 15:00:19 +01:00 |
|
Arceliar
|
5a02e2ff44
|
apparently it was these callbacks that were sometimes deadlocking things
|
2019-04-21 22:31:56 -05:00 |
|
Neil Alexander
|
79bcfbf175
|
Change some mutexes to atomics, change conns map to pointers, sort of works but seems to deadlock very easily
|
2019-04-21 11:50:41 +01:00 |
|
Neil Alexander
|
62621f2960
|
Some tweaks
|
2019-04-20 20:22:58 +01:00 |
|
Neil Alexander
|
160e01e84f
|
Searches called from api.go, various other tweaks, searches now have a callback for success/failure, node ID now reported by admin socket
|
2019-04-18 23:38:23 +01:00 |
|
Neil Alexander
|
2cd373fc1e
|
Remove unnecessary selects
|
2019-01-15 08:51:19 +00:00 |
|
Neil Alexander
|
3bf53796a7
|
Merge branch 'develop' into nodeconfig
|
2019-01-15 08:37:10 +00:00 |
|
Tristan B. Kildaire
|
345979b502
|
Spelling fixes for search.go
|
2019-01-09 11:44:45 +02:00 |
|
Neil Alexander
|
7fae1c993a
|
Handle errors from reconfigure tasks
|
2018-12-30 12:04:42 +00:00 |
|
Neil Alexander
|
219fb96553
|
Support notifying components for config reload, listen for SIGHUP
|
2018-12-29 18:51:51 +00:00 |
|
Arceliar
|
ea4ca02681
|
fix code after moving address/crypto/util
|
2018-12-14 20:49:18 -06:00 |
|
Arceliar
|
d520a8a1d5
|
refactor dht code to call arbitrary callbacks instead of only searches.checkDHTRes, and add admin API fuction to dhtPing a node (with an optional target NodeID)
|
2018-11-25 16:10:32 -06:00 |
|
Arceliar
|
15d5b3f82c
|
comments and minor cleanup
|
2018-11-09 23:02:38 -06:00 |
|
Arceliar
|
a008b42f99
|
cleanup and some bugfixes, cache important dht nodes until something gets added/removed
|
2018-10-29 22:24:18 -05:00 |
|
Arceliar
|
c0531627bc
|
fix some chord dht bootstrapping bugs, no known cases where it now fails
|
2018-10-24 22:03:27 -05:00 |
|