http2
http2 copied to clipboard
WARNING: DATA RACE
==================
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
==================
Yes, I won't actively look into it but I'll accept a PR