mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
055394f3be
Adds a new sync.Mutex field to the webClient struct, rather than using the general LocalBackend mutex. Since webClientGetOrInit (previously WebClientInit) gets called on every connection, we want to avoid holding the lock on LocalBackend just to check if the server is initialized. Moves all web_client.go funcs over to using the webClient.mu field. Updates tailscale/corp#14335 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
31 lines
620 B
Go
31 lines
620 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ios || android
|
|
|
|
package ipnlocal
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
|
|
"tailscale.com/client/tailscale"
|
|
)
|
|
|
|
const webClientPort = 5252
|
|
|
|
type webClient struct{}
|
|
|
|
func (b *LocalBackend) ConfigureWebClient(lc *tailscale.LocalClient) {}
|
|
|
|
func (b *LocalBackend) webClientGetOrInit() error {
|
|
return errors.New("not implemented")
|
|
}
|
|
|
|
func (b *LocalBackend) webClientShutdown() {}
|
|
|
|
func (b *LocalBackend) handleWebClientConn(c net.Conn) error {
|
|
return errors.New("not implemented")
|
|
}
|
|
func (b *LocalBackend) updateWebClientListenersLocked() {}
|