Add rate limiter

This commit is contained in:
Dominik Werder
2022-10-20 20:50:19 +02:00
parent b4912b538d
commit e5ad477c57
3 changed files with 99 additions and 11 deletions

View File

@@ -1250,6 +1250,7 @@ impl CaConn {
do_wake_again = true;
}
CaMsgTy::EventAddRes(k) => {
self.stats.caconn_recv_data_inc();
let res = Self::handle_event_add_res(self, k, tsnow);
let ts2 = Instant::now();
self.stats