Skip to content

Instantly share code, notes, and snippets.

@jaredfolkins
Created March 31, 2015 15:58
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 jaredfolkins/19526b9d65209cc8b449 to your computer and use it in GitHub Desktop.
Save jaredfolkins/19526b9d65209cc8b449 to your computer and use it in GitHub Desktop.
➜ h2demo git:(master) go run -race h2demo.go
2015/03/31 08:53:07 Listening on https://localhost:4430/
2015/03/31 08:53:11 Ignoring frame: [FrameHeader GOAWAY len=8]
==================
WARNING: DATA RACE
Write by goroutine 15:
bytes.(*Buffer).Truncate()
/usr/local/Cellar/go/1.4.2/libexec/src/bytes/buffer.go:62 +0x3b
bytes.(*Buffer).Reset()
/usr/local/Cellar/go/1.4.2/libexec/src/bytes/buffer.go:75 +0x3e
github.com/bradfitz/http2.(*writeResHeaders).writeFrame()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/write.go:122 +0x87
github.com/bradfitz/http2.(*serverConn).writeFrameAsync()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:559 +0x8e
Previous write by goroutine 65:
bytes.(*Buffer).Truncate()
/usr/local/Cellar/go/1.4.2/libexec/src/bytes/buffer.go:62 +0x3b
bytes.(*Buffer).Reset()
/usr/local/Cellar/go/1.4.2/libexec/src/bytes/buffer.go:75 +0x3e
github.com/bradfitz/http2.(*writeResHeaders).writeFrame()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/write.go:122 +0x87
github.com/bradfitz/http2.(*serverConn).writeFrameAsync()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:559 +0x8e
Goroutine 15 (running) created at:
github.com/bradfitz/http2.(*serverConn).startFrameWrite()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:794 +0x4c6
github.com/bradfitz/http2.(*serverConn).scheduleFrameWrite()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:831 +0x389
github.com/bradfitz/http2.(*serverConn).serve()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:635 +0xa3c
github.com/bradfitz/http2.(*Server).handleConn()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:277 +0xfb2
github.com/bradfitz/http2.func·006()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:189 +0xe2
net/http.(*conn).serve()
/usr/local/Cellar/go/1.4.2/libexec/src/net/http/server.go:1155 +0x94a
Goroutine 65 (finished) created at:
github.com/bradfitz/http2.(*serverConn).startFrameWrite()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:794 +0x4c6
github.com/bradfitz/http2.(*serverConn).scheduleFrameWrite()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:831 +0x389
github.com/bradfitz/http2.(*serverConn).writeFrame()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:744 +0x8f
github.com/bradfitz/http2.(*serverConn).serve()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:632 +0x9d3
github.com/bradfitz/http2.(*Server).handleConn()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:277 +0xfb2
github.com/bradfitz/http2.func·006()
/Users/jared.folkins/go/src/github.com/bradfitz/http2/server.go:189 +0xe2
net/http.(*conn).serve()
/usr/local/Cellar/go/1.4.2/libexec/src/net/http/server.go:1155 +0x94a
==================
exit status 66
➜ h2demo git:(master) go run -race h2demo.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment