diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-25 19:13:20 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-25 19:13:20 +0300 |
commit | 99225e6499d32f2415f64cd9d5d4402d3fb78b30 (patch) | |
tree | d682bb084091326bb937fb10350af304cadec5b9 /src/lua | |
parent | 417360dabf785feda65ceb18b05a743402117cdf (diff) | |
download | rspamd-99225e6499d32f2415f64cd9d5d4402d3fb78b30.tar.gz rspamd-99225e6499d32f2415f64cd9d5d4402d3fb78b30.zip |
Write to log number of dns requests per task.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 339f9e23f..a0e6a3992 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -571,6 +571,7 @@ lua_task_resolve_dns_a (lua_State * L) return 0; } if (make_dns_request (task->resolver, task->s, task->task_pool, lua_dns_callback, (void *)cd, DNS_REQUEST_A, cd->to_resolve)) { + task->dns_requests ++; task->save.saved++; } } @@ -612,6 +613,7 @@ lua_task_resolve_dns_txt (lua_State * L) return 0; } if (make_dns_request (task->resolver, task->s, task->task_pool, lua_dns_callback, (void *)cd, DNS_REQUEST_TXT, cd->to_resolve)) { + task->dns_requests ++; task->save.saved++; } } @@ -655,6 +657,7 @@ lua_task_resolve_dns_ptr (lua_State * L) return 0; } if (make_dns_request (task->resolver, task->s, task->task_pool, lua_dns_callback, (void *)cd, DNS_REQUEST_PTR, ina)) { + task->dns_requests ++; task->save.saved++; } } |