TUN-2505: Terminate stream on receipt of RST_STREAM; MuxedStream.CloseWrite() should terminate the MuxedStream.Write() loop

This commit is contained in:
Nick Vollmar
2019-11-05 17:24:00 -06:00
parent 3a9a0a0d75
commit e14ec1a1fb
2 changed files with 29 additions and 8 deletions

View File

@@ -125,6 +125,9 @@ func (r *MuxReader) run(parentLogger *log.Entry) error {
if streamID == 0 {
return ErrInvalidStream
}
if stream, ok := r.streams.Get(streamID); ok {
stream.Close()
}
r.streams.Delete(streamID)
case *http2.PingFrame:
r.receivePingData(f)