Do not set stream state in RST handler. Otherwise, cancel won't be called if a stream gets cancelled.
This commit is contained in:
Родитель
5a3d0652b6
Коммит
fc103b0421
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче