Commit Graph

17 Commits

Author SHA1 Message Date
Paul Lorenz afa651dd40 Fix Range bug where we only sent to one ER 2021-06-08 12:36:30 -04:00
Andrew Martinez 127de19ce1 remove re-Start() and re-Stop() capabilities 2021-06-03 10:36:49 -04:00
Andrew Martinez 087c51dd74 fixes rtx double stop panic
- stopping status was being reset causing subsequent stops to panic
- remove stopping atomic bool
- change router disconnect logging from debug to info
2021-06-01 14:00:22 -04:00
Andrew Martinez 93bfce03c2 remove go routine and simply close 2021-05-25 18:19:19 -04:00
Andrew Martinez 5a5fefa092 fixes deadlocks when a router disconnects mid sync or update
- range() of rtx'ers no longer locks, snapshots then loops
- rtx.Send() now checks for stopped/disconnected
- rtx.Send() now respects closeNotify
2021-05-25 16:23:20 -04:00
Paul Lorenz 038e9bdd91 Add support for host.v1. Add health checks to host.v1. Add host.v2 (multiple terminators). Add support for health events. 2021-03-25 15:43:07 -04:00
Paul Lorenz 00114b55a1 Set router status online. Allow ziti-tunnel proxy to work without config 2021-03-09 15:48:06 -05:00
Andrew Martinez 90ca54adb8 adds thread safe router state
Router state used to be stored and accessed in a thread unsafe way.
State is now locks on a mutex for setting values and values are copied
out for referencing.
2021-03-08 14:55:36 -05:00
Andrew Martinez b784577f36 add new error state for router sync, move defers to catch router info 2021-02-19 20:58:53 -05:00
Andrew Martinez 69bb67d237 fix exiting workers, panic recovery is unrelate but a good change 2021-02-19 20:14:24 -05:00
Paul Lorenz 155bbd8217 Validate sessions on controller instead of edge router 2021-02-17 20:38:13 -05:00
Andrew Martinez 74d4187f22 documentation, split shared options for instant sync, renames 2021-02-15 14:56:56 -05:00
Andrew Martinez f55751c77e fix worker count 2021-02-15 13:59:51 -05:00
Andrew Martinez d76fcbc168 merge stops in instant strat, add broker stop to shutdown 2021-02-15 13:39:07 -05:00
Andrew Martinez fdb2fb35ad rename routerTx to routerSender 2021-02-15 13:22:07 -05:00
Andrew Martinez a8f1b8b79a moves sync strat/state to headers 2021-02-15 13:22:07 -05:00
Andrew Martinez d07618c9d5 modular edge router sync
- edge router sync is now modular and can have different strategies
- plans to make this configurabe in the future with multiple strat
- legacy strategy is called "instant" and is the only option
- instant strat now supports control signaling and resync requests
- edge routers now do not remove connections till after a full sync
- added the ability for the controller to report the er sync status
- added er syn status to GET /edge-routers list and detail
- improved log output in sync logic
2021-02-15 13:22:07 -05:00