Skip to content

Commit c479a80

Browse files
catenacybervictorjulien
authored andcommitted
http2: set response_frame_size
Ticket: 8410 Do not set only request_frame_size whatever the direction (cherry picked from commit 7b0528d)
1 parent 995ad5d commit c479a80

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rust/src/http2/http2.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,11 @@ impl HTTP2State {
11481148
);
11491149
} else {
11501150
self.set_event(HTTP2Event::LongFrameData);
1151-
self.request_frame_size = head.length - (rem.len() as u32);
1151+
if dir == Direction::ToServer {
1152+
self.request_frame_size = head.length - (rem.len() as u32);
1153+
} else {
1154+
self.response_frame_size = head.length - (rem.len() as u32);
1155+
}
11521156
}
11531157
}
11541158

0 commit comments

Comments
 (0)