tailscale/tstest/integration
Aaron Klotz e016eaf410 cmd/tailscaled: conditionally flush Windows DNS cache on SessionChange
For the service, all we need to do is handle the `svc.SessionChange` command.
Upon receipt of a `windows.WTS_SESSION_UNLOCK` event, we fire off a goroutine to flush the DNS cache.
(Windows expects responses to service requests to be quick, so we don't want to do that synchronously.)

This is gated on an integral registry value named `FlushDNSOnSessionUnlock`,
whose value we obtain during service initialization.

(See [this link](https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nc-winsvc-lphandler_function_ex) for information re: handling `SERVICE_CONTROL_SESSIONCHANGE`.)

Fixes #2956

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2021-09-29 09:43:22 -06:00
..
testcontrol types/key: add a special key with custom serialization for control private keys (#2792) 2021-09-03 13:17:46 -07:00
vms tstest/integration/vms: use fork of goexpect to avoid proto/grpc dep 2021-09-07 14:44:56 -07:00
gen_deps.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
integration_test.go logpolicy: actually collect panics 2021-08-02 14:31:35 -07:00
integration.go tstest/integration: prefix logs with logid 2021-08-30 10:20:32 -07:00
tailscaled_deps_test_darwin.go cmd/tailscaled: add support for running an HTTP proxy 2021-09-28 10:57:46 -07:00
tailscaled_deps_test_freebsd.go cmd/tailscaled: add support for running an HTTP proxy 2021-09-28 10:57:46 -07:00
tailscaled_deps_test_linux.go cmd/tailscaled: add support for running an HTTP proxy 2021-09-28 10:57:46 -07:00
tailscaled_deps_test_openbsd.go cmd/tailscaled: add support for running an HTTP proxy 2021-09-28 10:57:46 -07:00
tailscaled_deps_test_windows.go cmd/tailscaled: conditionally flush Windows DNS cache on SessionChange 2021-09-29 09:43:22 -06:00