Merge pull request #189 from iamqizhao/master

Do not set stream state in RST handler. Otherwise, cancel won't be ca…
This commit is contained in:
Qi Zhao
2015-05-08 12:44:49 -07:00

View File

@ -360,11 +360,6 @@ func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) {
if !ok {
return
}
s.mu.Lock()
// Sets the stream state to avoid sending RSTStreamFrame to client
// unnecessarily.
s.state = streamDone
s.mu.Unlock()
t.closeStream(s)
}