proxyOpts := []grpc.DialOption{
grpc.WithBackoffMaxDelay(time.Second),
grpc.WithTransportCredentials(m.config.SecurityConfig.ClientTLSCreds),
}
cs := raftpicker.NewConnSelector(m.RaftNode, proxyOpts...)
m.connSelector = cs
......
// localProxyControlAPI is a special kind of proxy. It is only wired up
// to receive requests from a trusted local socket, and these requests
// don't use TLS, therefore the requests it handles locally should
// bypass authorization. When it proxies, it sends them as requests from
// this manager rather than forwarded requests (it has no TLS
// information to put in the metadata map).
forwardAsOwnRequest := func(ctx context.Context) (context.Context, error) { return ctx, nil }
localProxyControlAPI := api.NewRaftProxyControlServer(baseControlAPI, cs, m.RaftNode, forwardAsOwnRequest)

0 0x0000000000b65cbf in github.com/docker/swarmkit/manager/dispatcher.(*Dispatcher).Session
at /go/src/github.com/docker/swarmkit/manager/dispatcher/dispatcher.go:768
1 0x0000000000782aa5 in github.com/docker/swarmkit/api.(*authenticatedWrapperDispatcherServer).Session
at /go/src/github.com/docker/swarmkit/api/dispatcher.pb.go:207
2 0x000000000078e505 in github.com/docker/swarmkit/api.(*raftProxyDispatcherServer).Session
at /go/src/github.com/docker/swarmkit/api/dispatcher.pb.go:1121
3 0x0000000000789c2a in github.com/docker/swarmkit/api._Dispatcher_Session_Handler
at /go/src/github.com/docker/swarmkit/api/dispatcher.pb.go:667
4 0x0000000000909646 in github.com/docker/swarmkit/vendor/google.golang.org/grpc.(*Server).processStreamingRPC
at /go/src/github.com/docker/swarmkit/vendor/google.golang.org/grpc/server.go:602
5 0x000000000090b002 in github.com/docker/swarmkit/vendor/google.golang.org/grpc.(*Server).handleStream
at /go/src/github.com/docker/swarmkit/vendor/google.golang.org/grpc/server.go:686
6 0x000000000090fcbe in github.com/docker/swarmkit/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1
at /go/src/github.com/docker/swarmkit/vendor/google.golang.org/grpc/server.go:348
7 0x0000000000462bf0 in runtime.goexit
at /usr/local/go/src/runtime/asm_amd64.s:1998