diff options
| author | lijia <[email protected]> | 2024-06-06 11:16:22 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-06-06 11:16:22 +0800 |
| commit | 7d6170a23027aff0ebf2e7832dc11e4bbdce57ea (patch) | |
| tree | af9caf24c274b561bc92f07f8db7c14b89c5e425 /test/http_decoder_gtest.cpp | |
| parent | 1c232f0176c43c93c3e787ac83f3573bf42c58f1 (diff) | |
add fieldstat4 statistics, push transaction free msg in session closing state.v2.0.3
Diffstat (limited to 'test/http_decoder_gtest.cpp')
| -rw-r--r-- | test/http_decoder_gtest.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/http_decoder_gtest.cpp b/test/http_decoder_gtest.cpp index 3956a28..b2677fc 100644 --- a/test/http_decoder_gtest.cpp +++ b/test/http_decoder_gtest.cpp @@ -464,7 +464,18 @@ extern "C" void http_decoder_test_state_entry(struct session *sess, int topic_id }else{ json_object = gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_RES]; } - + if(HTTP_TRANSACTION_FREE == msg_type){ + unsigned char flow_flag; + session_is_symmetric(sess, &flow_flag); + if(SESSION_SEEN_C2S_FLOW == flow_flag){ + json_object = gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_REQ]; + } + else if(SESSION_SEEN_S2C_FLOW == flow_flag){ + json_object = gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_RES]; + }else{ // is symmetric + json_object = gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_RES]; + } + } int cur_transaction_id = http_message_get_transaction_seq((const http_message* )raw_msg); if(HTTP_TRANSACTION_NEW ==msg_type || HTTP_TRANSACTION_FREE == msg_type){ |
