http2: do not append data after closing file

Ticket: #6211

Completes commit 02dece5db5

Once a http2 stream has end of stream flag, we close the file.
If we see new data frames with this stream id, the new_chunk
function should ignore them as the file was already closed.
pull/9224/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 24bcaf07ae
commit 60db5e981c

@ -152,7 +152,7 @@ impl FileTransferTracker {
self.fill_bytes = fill_bytes;
self.chunk_is_last = is_last;
if self.file_is_truncated {
if self.file_is_truncated || self.file_closed {
return 0;
}
if !self.file_open {

Loading…
Cancel
Save