http2: global txs are unidirectional

Ticket: 8518

Meaning they will now match only once per tx instead of twice:
once for each direction
pull/15521/head
Philippe Antoine 2 months ago committed by Victor Julien
parent daf68dc36f
commit 8eed90ca9d

@ -747,11 +747,11 @@ impl HTTP2State {
return sid; return sid;
} }
fn create_global_tx(&mut self, _dir: Direction) -> &mut HTTP2Transaction { fn create_global_tx(&mut self, dir: Direction) -> &mut HTTP2Transaction {
//special transaction with only one frame //special transaction with only one frame
//as it affects the global connection, there is no end to it //as it affects the global connection, there is no end to it
let mut tx = HTTP2Transaction::new(); let mut tx = HTTP2Transaction::new();
//tx.tx_data = AppLayerTxData::for_direction(dir); tx.tx_data = AppLayerTxData::for_direction(dir);
self.tx_id += 1; self.tx_id += 1;
tx.tx_id = self.tx_id; tx.tx_id = self.tx_id;
tx.progress_tc = HTTP2TxProgress::HTTP2ProgGlobal; tx.progress_tc = HTTP2TxProgress::HTTP2ProgGlobal;

Loading…
Cancel
Save