Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP transport race condition #70

Open
Davincible opened this issue Oct 4, 2022 · 0 comments
Open

TCP transport race condition #70

Davincible opened this issue Oct 4, 2022 · 0 comments

Comments

@Davincible
Copy link
Contributor

WARNING: DATA RACE
Read at 0x00c0008508a8 by goroutine 142813:
  bufio.(*Writer).Available()
      /usr/lib/go/src/bufio/bufio.go:646 +0xef
  bufio.(*Writer).Write()
      /usr/lib/go/src/bufio/bufio.go:664 +0x26
  encoding/gob.(*Encoder).writeMessage()
      /usr/lib/go/src/encoding/gob/encoder.go:82 +0x774
  encoding/gob.(*Encoder).EncodeValue()
      /usr/lib/go/src/encoding/gob/encoder.go:253 +0x84a
  encoding/gob.(*Encoder).Encode()
      /usr/lib/go/src/encoding/gob/encoder.go:176 +0x15a
  github.com/go-micro/plugins/v4/transport/tcp.(*tcpTransportSocket).Send()
      /home/tyler/go/pkg/mod/github.com/go-micro/plugins/v4/transport/[email protected]/tcp.go:107 +0xfe
  go-micro.dev/v4/server.(*rpcServer).ServeConn.func3()
      /home/tyler/Launchpad/Micro/go-micro/server/rpc_server.go:353 +0x487
  go-micro.dev/v4/server.(*rpcServer).ServeConn.func5()
      /home/tyler/Launchpad/Micro/go-micro/server/rpc_server.go:357 +0x47

Previous write at 0x00c0008508a8 by goroutine 142778:
  bufio.(*Writer).Flush()
      /usr/lib/go/src/bufio/bufio.go:641 +0x328
  github.com/go-micro/plugins/v4/transport/tcp.(*tcpTransportSocket).Send()
      /home/tyler/go/pkg/mod/github.com/go-micro/plugins/v4/transport/[email protected]/tcp.go:110 +0x146
  go-micro.dev/v4/server.(*rpcServer).ServeConn.func3()
      /home/tyler/Launchpad/Micro/go-micro/server/rpc_server.go:353 +0x487
  go-micro.dev/v4/server.(*rpcServer).ServeConn.func5()
      /home/tyler/Launchpad/Micro/go-micro/server/rpc_server.go:357 +0x47

Goroutine 142813 (running) created at:
  go-micro.dev/v4/server.(*rpcServer).ServeConn()
      /home/tyler/Launchpad/Micro/go-micro/server/rpc_server.go:325 +0x205b
  go-micro.dev/v4/server.(*rpcServer).ServeConn-fm()
      <autogenerated>:1 +0x4d
  github.com/go-micro/plugins/v4/transport/tcp.(*tcpTransportListener).Accept.func1()
      /home/tyler/go/pkg/mod/github.com/go-micro/plugins/v4/transport/[email protected]/tcp.go:164 +0x81

Goroutine 142778 (finished) created at:
  go-micro.dev/v4/server.(*rpcServer).ServeConn()
      /home/tyler/Launchpad/Micro/go-micro/server/rpc_server.go:325 +0x205b
  go-micro.dev/v4/server.(*rpcServer).ServeConn-fm()
      <autogenerated>:1 +0x4d
  github.com/go-micro/plugins/v4/transport/tcp.(*tcpTransportListener).Accept.func1()
      /home/tyler/go/pkg/mod/github.com/go-micro/plugins/v4/transport/[email protected]/tcp.go:164 +0x81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant