Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
==================
WARNING: DATA RACE
Read at 0x00c4200a6230 by goroutine 7:
net/http.(*Server).shouldConfigureHTTP2ForServe()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2227 +0x48
net/http.(*Server).Serve()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2263 +0xcf
main.main.func2()
/tmp/main.go:23 +0x4e
Previous write at 0x00c4200a6230 by goroutine 6:
net/http.http2ConfigureServer()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/h2_bundle.go:2861 +0xb7f
net/http.(*Server).onceSetNextProtoDefaults()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2454 +0xcd
net/http.(*Server).(net/http.onceSetNextProtoDefaults)-fm()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2440 +0x41
sync.(*Once).Do()
/usr/local/Cellar/go/1.7rc3/libexec/src/sync/once.go:44 +0xf2
net/http.(*Server).setupHTTP2()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2440 +0x79
net/http.(*Server).Serve()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2264 +0x552
main.main.func1()
/tmp/main.go:22 +0x4e
Goroutine 7 (running) created at:
main.main()
/tmp/main.go:23 +0x1ac
Goroutine 6 (running) created at:
main.main()
/tmp/main.go:22 +0x176
==================
==================
WARNING: DATA RACE
Read at 0x00c4200fc048 by goroutine 7:
net/http.(*Server).shouldConfigureHTTP2ForServe()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2243 +0x7e
net/http.(*Server).Serve()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2263 +0xcf
main.main.func2()
/tmp/main.go:23 +0x4e
Previous write at 0x00c4200fc048 by goroutine 6:
net/http.http2ConfigureServer()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/h2_bundle.go:2894 +0x6b0
net/http.(*Server).onceSetNextProtoDefaults()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2454 +0xcd
net/http.(*Server).(net/http.onceSetNextProtoDefaults)-fm()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2440 +0x41
sync.(*Once).Do()
/usr/local/Cellar/go/1.7rc3/libexec/src/sync/once.go:44 +0xf2
net/http.(*Server).setupHTTP2()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2440 +0x79
net/http.(*Server).Serve()
/usr/local/Cellar/go/1.7rc3/libexec/src/net/http/server.go:2264 +0x552
main.main.func1()
/tmp/main.go:22 +0x4e
Goroutine 7 (running) created at:
main.main()
/tmp/main.go:23 +0x1ac
Goroutine 6 (running) created at:
main.main()
/tmp/main.go:22 +0x176
==================
Found 2 data race(s)
exit status 66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.