MCPcopy Create free account
hub / github.com/tailscale/tailscale / InServeMap

Method InServeMap

tstest/integration/testcontrol/testcontrol.go:1156–1160  ·  view source on GitHub ↗

InServeMap returns the number of clients currently in a MapRequest HTTP handler.

()

Source from the content-addressed store, hash-verified

1154
1155// InServeMap returns the number of clients currently in a MapRequest HTTP handler.
1156func (s *Server) InServeMap() int {
1157 s.mu.Lock()
1158 defer s.mu.Unlock()
1159 return s.inServeMap
1160}
1161
1162func (s *Server) serveMap(w http.ResponseWriter, r *http.Request, mkey key.MachinePublic) {
1163 s.incrInServeMap(1)

Callers 2

MustDownMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 1