aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/tunneltracker.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: split into tunnel and managerJason A. Donenfeld2019-05-201-180/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: use more upstream constantsJason A. Donenfeld2019-05-161-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: more apis ported upstreamJason A. Donenfeld2019-05-151-36/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: use tab after //sysJason A. Donenfeld2019-05-141-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: regroup all importsJason A. Donenfeld2019-05-141-4/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: use more standard naming scheme for syscallsJason A. Donenfeld2019-05-131-53/+40
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: account for delete pending windows bug in tunneltrackerJason A. Donenfeld2019-05-091-3/+33
| | | | | | | | | | | Sometimes deleting a service disables it and prepares it for being deleted, but doesn't actually mark it as pending deletion. Presumably this is due to a race condition in the service management code. Workaround this by polling for disabled services, so that we don't wind up sleeping forever. Reported-by: Thomas Gschwantner <tharre3@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: simplify everythingJason A. Donenfeld2019-04-271-5/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunneltracker: don't track tunnels that haven't been startedJason A. Donenfeld2019-03-121-18/+44
| | | | | | | | | | Otherwise we get the hasn't-been-started-yet error, and the tracker quits. Meanwhile this is reported back to the ui as an error. While we're at it, don't let multiple trackers be run, in the event that the at-start tracker races with the installation tracker. And, make sure we actually get the deletion notification. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunneltracker: redo deletion state machineJason A. Donenfeld2019-03-121-44/+48
| | | | | | | We're now properly examining the notifier return value and also making sure events are delivered in order. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: keep track of proper errorsJason A. Donenfeld2019-03-101-1/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunneltracker: account for windows 7 statemachine bugJason A. Donenfeld2019-03-091-1/+8
| | | | | | | Windows 7 will transition to stopping after it has already triggered stopped, so keep track of that and filter it out. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: validate tunnel nameJason A. Donenfeld2019-03-051-1/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: track tunnel service statusJason A. Donenfeld2019-02-281-0/+117
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>