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

Stream.IsFinished() Data Race #93

Closed
code-qote opened this issue Jan 16, 2024 · 0 comments
Closed

Stream.IsFinished() Data Race #93

code-qote opened this issue Jan 16, 2024 · 0 comments

Comments

@code-qote
Copy link

While running code with flag -race got this message:

==================
WARNING: DATA RACE
Write at 0x00c0006a6ed8 by goroutine 259:
  github.com/moby/spdystream.(*Stream).resetStream()
      /github.com/moby/spdystream/stream.go:199 +0x90
  github.com/moby/spdystream.(*Stream).Reset()
      /github.com/moby/spdystream/stream.go:185 +0x4f
  k8s.io/apimachinery/pkg/util/httpstream/spdy.(*connection).Close()
      /k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go:111 +0xd6

Previous read at 0x00c0006a6ed8 by goroutine 291:
  github.com/moby/spdystream.(*Stream).IsFinished()
      /github.com/moby/spdystream/stream.go:308 +0x89
==================
==================
WARNING: DATA RACE
Read at 0x00c000925f18 by goroutine 296:
  github.com/moby/spdystream.(*Stream).IsFinished()
      /github.com/moby/spdystream/stream.go:308 +0x89

Previous write at 0x00c000925f18 by goroutine 284:
  github.com/moby/spdystream.(*Connection).handleResetFrame()
      /github.com/moby/spdystream/connection.go:552 +0x14b
  github.com/moby/spdystream.(*Connection).frameHandler()
      /github.com/moby/spdystream/connection.go:428 +0x105
  github.com/moby/spdystream.(*Connection).Serve.func2()
      /github.com/moby/spdystream/connection.go:331 +0xa6
  github.com/moby/spdystream.(*Connection).Serve.func4()
      /github.com/moby/spdystream/connection.go:332 +0x47
==================
@code-qote code-qote changed the title IsFinished Data Race IsFinished() Data Race Jan 16, 2024
@code-qote code-qote changed the title IsFinished() Data Race Stream.IsFinished() Data Race Jan 16, 2024
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

2 participants