Skip to content

ClientConn needs to be protected by mutex #29

@scudette

Description

@scudette

Race detector complains:

Write at 0x00c0000b63c0 by goroutine 104:
  github.com/processout/grpc-go-pool.(*ClientConn).Close()
      /home/mic/go/pkg/mod/github.com/processout/grpc-go-pool@v1.2.2-0.20200228131710-c0fcf3af0014/pool.go:236 +0x344
  github.com/processout/grpc-go-pool.(*ClientConn).Close-fm()
      /home/mic/go/pkg/mod/github.com/processout/grpc-go-pool@v1.2.2-0.20200228131710-c0fcf3af0014/pool.go:195 +0x39

Previous read at 0x00c0000b63c0 by goroutine 101:
  github.com/processout/grpc-go-pool.(*ClientConn).Close()
      /home/mic/go/pkg/mod/github.com/processout/grpc-go-pool@v1.2.2-0.20200228131710-c0fcf3af0014/pool.go:220 +0x204
  github.com/processout/grpc-go-pool.(*ClientConn).Close-fm()
      /home/mic/go/pkg/mod/github.com/processout/grpc-go-pool@v1.2.2-0.20200228131710-c0fcf3af0014/pool.go:195 +0x39

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions