OSDN Git Service

bug fix. Can not get statistic when option -c only.
[ultramonkey-l7/ultramonkey-l7-v3.git] / l7vsd / module / protocol / protocol_module_ip.cpp
index a306dda..66c68c3 100644 (file)
@@ -1720,7 +1720,7 @@ protocol_module_base::EVENT_TAG protocol_module_ip::handle_client_recv(const boo
                                 putLogError(600037, formatter.str(), __FILE__, __LINE__);
                                 status = FINALIZE;
                         } else {
-                                if (forwarded_for == FORWARDED_FOR_OFF && session_data_ptr->sorry_flag == SORRY_FLAG_OFF) {
+                                if ( statistic == COLLECT_STATS_OFF && forwarded_for == FORWARDED_FOR_OFF && session_data_ptr->sorry_flag == SORRY_FLAG_OFF) {
                                         session_data_ptr->data_state = UNKNOWN;
                                 }
                                 //data state is HTTP_START