Commit Graph

601 Commits

Author SHA1 Message Date
Zlatin Balevsky
b2796a3d40 logic in connection managers to check if already connected. Prevent infinite connect loop. Fix Connction constructors 2018-07-26 19:03:13 +01:00
Zlatin Balevsky
7c0f5b4e88 outgoing connections are never to leafs 2018-07-26 18:43:09 +01:00
Zlatin Balevsky
3b616b8947 toString() methods in some events 2018-07-26 18:40:08 +01:00
Zlatin Balevsky
351edcb20e make connection events carry leaf status information 2018-07-26 18:11:08 +01:00
Zlatin Balevsky
063357120c only connect to hosts not already in progress 2018-07-26 12:44:53 +01:00
Zlatin Balevsky
e62bceda29 wire connector and acceptor together 2018-07-26 12:39:02 +01:00
Zlatin Balevsky
90a1fa6a0d implement hooks into i2p streaming lib 2018-07-26 12:20:17 +01:00
Zlatin Balevsky
92e5cc87ef more unit tests 2018-07-26 09:38:21 +01:00
Zlatin Balevsky
37909d5193 acceptor test 2018-07-26 09:16:32 +01:00
Zlatin Balevsky
977b273656 implement rejection suggestions 2018-07-26 08:29:05 +01:00
Zlatin Balevsky
520d04cba4 wip on acceptor 2018-07-26 03:57:53 +01:00
Zlatin Balevsky
511c68a203 skeleton of connection acceptor 2018-07-26 03:06:59 +01:00
Zlatin Balevsky
b3dd89dbe5 ignore incoming connection events 2018-07-26 02:50:43 +01:00
Zlatin Balevsky
7ba5bf61c5 update README for core project 2018-07-26 01:06:32 +01:00
Zlatin Balevsky
3d78b110f0 Move all event dispatching to it's own thread. Update tests to wait a bit 2018-07-26 01:02:32 +01:00
Zlatin Balevsky
f8a36d310f more tests and fixes 2018-07-26 00:53:21 +01:00
Zlatin Balevsky
82420cc217 fix thread creation and logging 2018-07-25 23:59:38 +01:00
Zlatin Balevsky
49bb78688f add empty constructors for mocking 2018-07-25 23:56:56 +01:00
Zlatin Balevsky
9c85dfa7b4 work on establisher test 2018-07-25 23:56:18 +01:00
Zlatin Balevsky
ac8d554332 Do not let exceptions in post-rejection json trigger close loops 2018-07-25 20:54:52 +01:00
Zlatin Balevsky
7a77b88d49 handle rejection and suggested hosts 2018-07-25 20:43:49 +01:00
Zlatin Balevsky
b96a039c91 rename json field because try is a groovy keyword 2018-07-25 20:43:22 +01:00
Zlatin Balevsky
e10eb7648b Make Endpoint implement Closeable, more work on outgoing handshakes 2018-07-25 20:26:18 +01:00
Zlatin Balevsky
074b2e51fb prevent infinite loop if we don't know of any unconnected hosts 2018-07-25 19:27:59 +01:00
Zlatin Balevsky
53fde470ee prevent infinite loop if we don't know of any unconnected hosts 2018-07-25 19:26:08 +01:00
Zlatin Balevsky
fd4ee74079 Work on connection establishment 2018-07-25 19:05:25 +01:00
Zlatin Balevsky
b0b9430479 Change connection event to carry an endpoint 2018-07-25 18:54:07 +01:00
Zlatin Balevsky
1b629a8f0a Initialize i2p session first on startup. Prevent own destination from ending up in host cache 2018-07-25 17:39:21 +01:00
Zlatin Balevsky
b7518a8b63 skeleton of connection establisher 2018-07-25 14:46:06 +01:00
Zlatin Balevsky
cf6a9b9314 add dependencies on streaming lib, skeleton of i2p connector 2018-07-25 14:21:13 +01:00
Zlatin Balevsky
16fc1f42c7 introduce Endpoint concept for i2p endpoints 2018-07-25 13:53:47 +01:00
Zlatin Balevsky
0630727892 filter own destination if returned from hostcache 2018-07-24 04:16:00 +01:00
Zlatin Balevsky
1954ffc999 fix argument order 2018-07-24 03:57:01 +01:00
Zlatin Balevsky
05059878c7 initialize interval and hook up listener 2018-07-24 03:52:40 +01:00
Zlatin Balevsky
46ddd65e03 wire some components together 2018-07-24 03:52:14 +01:00
Zlatin Balevsky
19a688037f more efficient persisting 2018-07-23 19:41:59 +01:00
Zlatin Balevsky
5a2019f8eb first pass at main point 2018-07-23 16:09:59 +01:00
Zlatin Balevsky
07b8724e8f add waitForLoad() method to loadable services 2018-07-23 16:09:43 +01:00
Zlatin Balevsky
afcc39ada9 Initialize settings from Properties 2018-07-23 16:08:30 +01:00
Zlatin Balevsky
c0113dd738 switch to groovy entry point 2018-07-23 15:20:42 +01:00
Zlatin Balevsky
cea5825b8d switch to groovy entry point 2018-07-23 15:18:24 +01:00
Zlatin Balevsky
0b43be2bc4 HostCache client 2018-07-23 15:02:45 +01:00
Zlatin Balevsky
e860ee1e20 log event seqNo and timestamp. Fix synchronization 2018-07-23 01:08:08 +01:00
Zlatin Balevsky
ffa659b030 work on cache client 2018-07-22 23:00:04 +01:00
Zlatin Balevsky
7d099e7478 add checker if a destination is a registered hostcache 2018-07-22 22:59:44 +01:00
Zlatin Balevsky
f2f09a359d add logging to event bus 2018-07-22 22:58:56 +01:00
Zlatin Balevsky
5407aa8616 skeleton of hostcache client 2018-07-22 16:41:09 +01:00
Zlatin Balevsky
a233876c4e more tests 2018-07-22 12:31:00 +01:00
Zlatin Balevsky
68e669d656 hostcache tests and fixes 2018-07-22 10:56:00 +01:00
Zlatin Balevsky
db98d63caf respond to discovery of new hosts and connection attempts 2018-07-22 09:37:32 +01:00