You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tsnet
Tom Proctor ac51541236
tsnet: respond quickly to state changes in auth loop
tsnet has a 5s sleep as part of its logic waiting for login to succeed.
Add an additional channel that will interrupt this sleep early if the
local backend's state changes before then. This is early enough in the
bootstrap logic that the local client has not been set up yet, so we
subscribe directly on the local backend in keeping with the rest of the
function, but it would be nice to port the whole function to the new
eventbus in a separate change.

This was noticed while debugging what makes tsconsensus tests slow, but
it probably affects other test suites as well.

Updates #16340

Change-Id: I7a28fd3927bbcdead9a5aad39f4a3596b5f659b0
Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
1 week ago
..
example tsnet: split user facing and backend logging 2 years ago
depaware.txt cmd/cigocacher,go.mod: add cigocacher cmd 1 week ago
example_tshello_test.go tsnet: add examples (#8289) 2 years ago
example_tsnet_test.go tsnet: split user facing and backend logging 2 years ago
packet_filter_test.go tsnet: add tstest.Shard on the slow tests 3 weeks ago
tsnet.go tsnet: respond quickly to state changes in auth loop 1 week ago
tsnet_test.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago