Commit graph

177 commits

Author SHA1 Message Date
Alex Grintsvayg
c7717add23 grin should not be force-pushing 2018-06-26 11:09:55 -04:00
Alex Grintsvayg
21fa1969a4 oops 2018-06-26 10:58:19 -04:00
Alex Grintsvayg
34cc92678b partial switch to new stopgroup. need to refactor to take advantage of child cancelation 2018-06-25 16:49:40 -04:00
Alex Grintsvayg
531933761a remove sendCancelable 2018-06-25 15:56:45 -04:00
Alex Grintsvayg
ab9b6f27e5 correct node_finder to use loose parallelism 2018-06-25 15:48:57 -04:00
Alex Grintsvayg
107757060e broke out contact into separate file 2018-06-25 13:00:55 -04:00
Alex Grintsvayg
7f6d7ac960 tmp for testing 2018-06-22 09:30:32 -04:00
Alex Grintsvayg
c8be55cfd7 better nodefinder logging 2018-06-22 09:30:16 -04:00
Alex Grintsvayg
c327b6b456 minor fixes 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
d41cbbd817 add token cache 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
7375c831fd TODO: review this 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
ce7e793cf0 add proto version to dht 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
e480fa146f fixed a few channel lockups, fixed announced port in dht, successfully announced and served a blob 2018-06-21 11:26:48 -04:00
Alex Grintsvayg
4ab3aea7b6 small test 2018-06-19 14:06:35 -04:00
Alex Grintsvayg
385a24337a cluster automatically balances what nodes are announcing what hashes 2018-06-19 13:47:13 -04:00
Alex Grintsvayg
4535122a06 starting to put together the pieces
- prism start command
- more configs for prism when assembling the pieces
- cluster notifies on membership change, determines hash range, announces hashes
2018-06-14 22:30:38 -04:00
Alex Grintsvayg
3e7f7583d6 move bitmap into separate package 2018-06-14 20:10:44 -04:00
Alex Grintsvayg
8cde53c8f1 fix some stoppers 2018-06-13 12:45:47 -04:00
Mark Beamer Jr
2edfc28398 Addressed code reviews. 2018-06-13 09:44:24 -04:00
Alex Grintsvayg
317a7d961a Merge branch 'stopper'
* stopper:
  implemented stopper pattern
2018-06-13 09:36:51 -04:00
Mark Beamer Jr
a2a0b27bc4 implemented stopper pattern
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
-Implemented stopper param for reflector server
-Aligned Cluster New to NewCluster
-Adjusted DHT to use StopAndWait
-Removed blocking waitgroup add
-Unified all components under prism.
-Moved defer done outside of functions.
-renamed NewCluster to New
-fixed travis errors.
2018-06-13 09:36:44 -04:00
Alex Grintsvayg
8859733101 Merge branch 'code_cleanup'
* code_cleanup:
  code cleanup
2018-06-13 09:36:21 -04:00
Mark Beamer Jr
35f98ce162 code cleanup
-Added travis support
-updated travis to analyze code beneath the root.
-refactored upload.go to fix travis errors.
-gocyclo should ignore test files. $GOFILES needed to be adjusted.
-fix rows.Close() ignoring error. Created func to handle so defer can be used when needed also.
-fixed ignored errors.
-fixed unit test that was not passing correctly to anonymous function.
-fixed govet error for passing param inside go func.
-removed returned error, in favor of logging instead.
-added error logging for ignored error.
-fixed potential race conditions.
-removed unused append
-fixed time usage to align with go standards.
-removed unused variables
-made changes for code review.
-code comments for exported functions.
-Documented bitmap.go and insert into contact list.
-Documented dht, message, bootstrap
-Fixed comment typos
-Documented message,node, routing_table, testing in DHT package.
-Documented server, client, prism, server and shared in peer and reflector packages.
-Documented the stores in Store package.
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
2018-06-13 09:29:13 -04:00
Alex Grintsvayg
fde060a97b readme 2018-05-29 17:37:50 -04:00
Alex Grintsvayg
1075de77f5 started merging all components into one 2018-05-29 17:33:58 -04:00
Alex Grintsvayg
388c1128ec get rid of ReadDeadline, switch to updated stopOnce 2018-05-24 17:49:43 -04:00
Alex Grintsvayg
57a7c23787 update stopper 2018-05-24 13:05:05 -04:00
Alex Grintsvayg
315f8ff16c self-store 2018-05-22 12:27:49 -04:00
Alex Grintsvayg
08d2991244 reannounce 2018-05-22 12:16:08 -04:00
Alex Grintsvayg
ea67bb93d8 added routing table saving, bitmap operations, lots of tests 2018-05-19 13:06:19 -04:00
Alex Grintsvayg
8e128ea851 count errors too 2018-05-18 09:37:26 -04:00
Alex Grintsvayg
39914c8ab8 concurrency flags, fixes 2018-05-15 13:26:20 -04:00
Alex Grintsvayg
3b0a2df0ef added upload command, --conf and --verbose flags 2018-05-14 20:55:48 -04:00
Alex Grintsvayg
b87ec26359 update dependencies 2018-05-13 22:49:32 -04:00
Alex Grintsvayg
42a65e727c large dht test is a real test 2018-05-13 21:38:30 -04:00
Alex Grintsvayg
3b1ddd75fc added concurrent dht test 2018-05-13 21:17:29 -04:00
Alex Grintsvayg
2bf117b05f bootstrap node, bucket grooming 2018-05-13 17:33:49 -04:00
Alex Grintsvayg
01476a2a8d minor refactor 2018-05-01 16:18:38 -04:00
Alex Grintsvayg
81759d8b5a move most dht code into Node 2018-04-27 20:16:12 -04:00
Alex Grintsvayg
6c081ec54b actually this is the correct behavior 2018-04-24 21:13:48 -04:00
Alex Grintsvayg
3d4253b934 expose how many initial nodes are found 2018-04-24 21:13:37 -04:00
Alex Grintsvayg
9979a70c61 fix rt updates, add Ping method 2018-04-24 18:12:17 -04:00
Alex Grintsvayg
3419e396d1 bind all ports by default 2018-04-24 17:20:03 -04:00
Alex Grintsvayg
faa96e6a62 dht quirk 2018-04-24 17:19:16 -04:00
Alex Grintsvayg
ebc7373dc1 kill printstate when dht stops 2018-04-05 16:39:05 -04:00
Alex Grintsvayg
c337973c0f add token manager, add token to request/response, sucessfully perform a STORE request on the python daemon 2018-04-05 16:27:28 -04:00
Alex Grintsvayg
c254243716 more improvements 2018-04-05 11:35:57 -04:00
Alex Grintsvayg
d9acce359f switch request.Args to be a bitmap 2018-04-04 12:01:44 -04:00
Alex Grintsvayg
dd8333db33 bitmaps in more places 2018-04-04 11:43:27 -04:00
Alex Grintsvayg
1acfd13ee9 peek at raw bencoded data to avoid extra decode 2018-04-03 14:15:04 -04:00