MCPcopy
hub / github.com/google/gvisor / Stop

Method Stop

pkg/control/server/server.go:82–89  ·  view source on GitHub ↗

Stop stops the server. Note that this function should only be called once and the server should not be used afterwards.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

80// Stop stops the server. Note that this function should only be called once
81// and the server should not be used afterwards.
82func (s *Server) Stop(timeout time.Duration) {
83 s.socket.Close()
84 s.Wait()
85
86 // This will cause existing clients to be terminated safely. If the
87 // registered handlers have a Stop callback, it will be called.
88 s.server.Load().Stop(timeout)
89}
90
91// StartServing starts listening for connect and spawns the main service
92// goroutine for handling incoming control requests. StartServing does not

Callers

nothing calls this directly

Calls 4

WaitMethod · 0.95
CloseMethod · 0.65
StopMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected