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:
Коммит
530349e4bb
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче