diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-25 12:31:39 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-25 12:31:39 +0300 |
commit | 62aaf7da57503a257aecede98ba2ae2e1f2ee3e2 (patch) | |
tree | ff6d99673a8ebf08d27716beaf4ea689d4aa98f9 /src/worker.c | |
parent | f592edf20b6d91fb6c25d9d3b1021d2ab4c5fcb3 (diff) | |
download | rspamd-62aaf7da57503a257aecede98ba2ae2e1f2ee3e2.tar.gz rspamd-62aaf7da57503a257aecede98ba2ae2e1f2ee3e2.zip |
* Log scan time and scan length of messages
* Remove 2 memory leaks
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c index bf5dfa159..295f331dc 100644 --- a/src/worker.c +++ b/src/worker.c @@ -254,6 +254,7 @@ accept_socket (int fd, short what, void *arg) new_task->state = READ_COMMAND; new_task->sock = nfd; new_task->cfg = worker->srv->cfg; + clock_gettime (CLOCK_REALTIME, &new_task->ts); io_tv.tv_sec = WORKER_IO_TIMEOUT; io_tv.tv_usec = 0; TAILQ_INIT (&new_task->urls); |