MCPcopy
hub / github.com/grpc/grpc-go / stop

Method stop

internal/transport/transport_test.go:564–573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562}
563
564func (s *server) stop() {
565 s.lis.Close()
566 s.mu.Lock()
567 for c := range s.conns {
568 c.Close(errors.New("server Stop called"))
569 }
570 s.conns = nil
571 s.mu.Unlock()
572 <-s.servingTasksDone
573}
574
575func (s *server) addr() string {
576 if s.lis == nil {

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected