From 60db5e981cd4a6680022de523bfd03f651e61764 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 12 Jul 2023 09:42:47 +0200 Subject: [PATCH] http2: do not append data after closing file Ticket: #6211 Completes commit 02dece5db5170ae9bd946d0b8805e45ac071a97c 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. --- rust/src/filetracker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/filetracker.rs b/rust/src/filetracker.rs index d35126d7ae..ad1c4c0c3a 100644 --- a/rust/src/filetracker.rs +++ b/rust/src/filetracker.rs @@ -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 { -- 2.47.2