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

WARNING: DATA RACE #69

Open
zishang520 opened this issue May 10, 2024 · 1 comment
Open

WARNING: DATA RACE #69

zishang520 opened this issue May 10, 2024 · 1 comment

Comments

@zishang520
Copy link

==================
WARNING: DATA RACE
Read at 0x00c0002ea130 by goroutine 23:
  github.com/dgrr/http2.(*serverConn).sendPingAndSchedule()
      C:/Users/test/go/pkg/mod/github.com/dgrr/[email protected]/serverConn.go:979 +0x3c
  github.com/dgrr/http2.(*serverConn).sendPingAndSchedule-fm()
      <autogenerated>:1 +0x33

Previous write at 0x00c0002ea130 by goroutine 14:
  github.com/dgrr/http2.(*serverConn).writeLoop()
      C:/Users/test/go/pkg/mod/github.com/dgrr/[email protected]/serverConn.go:984 +0x128
  github.com/dgrr/http2.(*serverConn).Serve.func2()
      C:/Users/test/go/pkg/mod/github.com/dgrr/[email protected]/serverConn.go:114 +0x76

Goroutine 23 (running) created at:
  time.goFunc()
      D:/Language/Go/src/time/sleep.go:177 +0x44

Goroutine 14 (running) created at:
  github.com/dgrr/http2.(*serverConn).Serve()
      C:/Users/test/go/pkg/mod/github.com/dgrr/[email protected]/serverConn.go:108 +0x393
  github.com/dgrr/http2.(*Server).ServeConn()
      C:/Users/test/go/pkg/mod/github.com/dgrr/[email protected]/server.go:87 +0xe69
  github.com/dgrr/http2.(*Server).ServeConn-fm()
      <autogenerated>:1 +0x47
  github.com/valyala/fasthttp.(*Server).serveConn()
      C:/Users/test/go/pkg/mod/github.com/valyala/[email protected]/server.go:2135 +0x4e5
  github.com/valyala/fasthttp.(*Server).serveConn-fm()
      <autogenerated>:1 +0x47
  github.com/valyala/fasthttp.(*workerPool).workerFunc()
      C:/Users/test/go/pkg/mod/github.com/valyala/[email protected]/workerpool.go:224 +0xe1
  github.com/valyala/fasthttp.(*workerPool).getCh.func1()
      C:/Users/test/go/pkg/mod/github.com/valyala/[email protected]/workerpool.go:196 +0x4a
==================
@dgrr
Copy link
Owner

dgrr commented May 10, 2024

Yes, I won't actively look into it but I'll accept a PR

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