Skip to content

Instantly share code, notes, and snippets.

@benburkert
Created July 26, 2016 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benburkert/4eb8e7e4acb72984f7568f4e1fdf1847 to your computer and use it in GitHub Desktop.
Save benburkert/4eb8e7e4acb72984f7568f4e1fdf1847 to your computer and use it in GitHub Desktop.
==================
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