{"action":"opened","issue":{"url":"https://api.github.com/repos/bradfitz/http2/issues/82","labels_url":"https://api.github.com/repos/bradfitz/http2/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/bradfitz/http2/issues/82/comments","events_url":"https://api.github.com/repos/bradfitz/http2/issues/82/events","html_url":"https://github.com/bradfitz/http2/issues/82","id":121463633,"number":82,"title":"Race in CloseNotify?","user":{"login":"anacrolix","id":988750,"avatar_url":"https://avatars.githubusercontent.com/u/988750?v=3","gravatar_id":"","url":"https://api.github.com/users/anacrolix","html_url":"https://github.com/anacrolix","followers_url":"https://api.github.com/users/anacrolix/followers","following_url":"https://api.github.com/users/anacrolix/following{/other_user}","gists_url":"https://api.github.com/users/anacrolix/gists{/gist_id}","starred_url":"https://api.github.com/users/anacrolix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anacrolix/subscriptions","organizations_url":"https://api.github.com/users/anacrolix/orgs","repos_url":"https://api.github.com/users/anacrolix/repos","events_url":"https://api.github.com/users/anacrolix/events{/privacy}","received_events_url":"https://api.github.com/users/anacrolix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T11:30:43Z","updated_at":"2015-12-10T11:30:43Z","closed_at":null,"body":"```\r\nWARNING: DATA RACE\r\nWrite by goroutine 20:\r\n  github.com/bradfitz/http2.(*responseWriter).handlerDone()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:1778 +0xd4\r\n  github.com/bradfitz/http2.(*serverConn).runHandler()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:1434 +0xcf\r\n\r\nPrevious read by goroutine 383:\r\n  github.com/bradfitz/http2.(*responseWriter).CloseNotify()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:1682 +0x32\r\n  github.com/anacrolix/missinggo.(*StatusResponseWriter).CloseNotify()\r\n      /root/gopath/src/github.com/anacrolix/missinggo/httpresponsestatus.go:24 +0x84\r\n<snip>\r\n\r\nGoroutine 20 (running) created at:\r\n  github.com/bradfitz/http2.(*serverConn).processHeaderBlockFragment()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:1294 +0x4eb\r\n  github.com/bradfitz/http2.(*serverConn).processHeaders()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:1243 +0x7bd\r\n  github.com/bradfitz/http2.(*serverConn).processFrame()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:970 +0x70b\r\n  github.com/bradfitz/http2.(*serverConn).processFrameFromReader()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:919 +0x4a0\r\n  github.com/bradfitz/http2.(*serverConn).serve()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:643 +0xc7e\r\n  github.com/bradfitz/http2.(*Server).handleConn()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:277 +0xf92\r\n  github.com/bradfitz/http2.ConfigureServer.func1()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:189 +0xc4\r\n  net/http.(*conn).serve()\r\n      /root/src/go1.5/src/net/http/server.go:1312 +0x9ce\r\n\r\nGoroutine 383 (finished) created at:\r\n<snip>\r\n  net/http.HandlerFunc.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1422 +0x47\r\n<snip>\r\n  net/http.HandlerFunc.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1422 +0x47\r\n  net/http.(*ServeMux).ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1699 +0x212\r\n  github.com/gorilla/context.ClearHandler.func1()\r\n      /root/gopath/src/github.com/gorilla/context/context.go:141 +0x92\r\n  net/http.HandlerFunc.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1422 +0x47\r\n<snip>\r\n  net/http.HandlerFunc.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1422 +0x47\r\n<snip>\r\n  net/http.HandlerFunc.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1422 +0x47\r\n  net/http.serverHandler.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:1862 +0x206\r\n  net/http.initNPNRequest.ServeHTTP()\r\n      /root/src/go1.5/src/net/http/server.go:2197 +0x349\r\n  net/http.(*initNPNRequest).ServeHTTP()\r\n      <autogenerated>:53 +0xda\r\n  github.com/bradfitz/http2.(*serverConn).runHandler()\r\n      /root/gopath/src/github.com/bradfitz/http2/server.go:1433 +0xce\r\n```"}}