diff --git a/http2/server.go b/http2/server.go index 8f1701914..3bbb26145 100644 --- a/http2/server.go +++ b/http2/server.go @@ -1642,6 +1642,7 @@ func (sc *serverConn) processData(f *DataFrame) error { if len(data) > 0 { wrote, err := st.body.Write(data) if err != nil { + sc.sendWindowUpdate32(nil, int32(f.Length)) return streamError(id, ErrCodeStreamClosed) } if wrote != len(data) {