Browse code

update drp_reqs statistics (cherry picked from commit f4b64fc173c4ecc470346f05514af43adbda294a)

Daniel-Constantin Mierla authored on 23/10/2009 14:48:16
Showing 2 changed files
... ...
@@ -584,6 +584,8 @@ end:
584 584
 	/* received_buf & line_buf will be freed in receive_msg by free_lump_list*/
585 585
 	if(ret==0)
586 586
 		sr_event_exec(SREV_CORE_STATS, (void*)1);
587
+	else
588
+		sr_event_exec(SREV_CORE_STATS, (void*)3);
587 589
 	return ret;
588 590
 }
589 591
 
... ...
@@ -183,7 +183,10 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
183 183
 		   on via1 being parsed in a pre-script callback --andrei
184 184
 		*/
185 185
 		if (exec_pre_script_cb(msg, REQUEST_CB_TYPE)==0 )
186
+		{
187
+			sr_event_exec(SREV_CORE_STATS, (void*)3);
186 188
 			goto end; /* drop the request */
189
+		}
187 190
 
188 191
 		set_route_type(REQUEST_ROUTE);
189 192
 		/* exec the routing script */