aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-20 13:42:37 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-20 19:43:32 +0100
commit450179f942070bf750514d43dd091ed529475739 (patch)
treeb970c75426882bd7e9d1cef6a1948d502d22505d /src/plugins
parentafa07e499f51eac10dc1ed6a566752904f905f80 (diff)
downloadrspamd-450179f942070bf750514d43dd091ed529475739.tar.gz
rspamd-450179f942070bf750514d43dd091ed529475739.zip
[Project] Implement counter for async events in symcache item
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/surbl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index fa4b92162..88c6a0823 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -108,7 +108,7 @@ struct dns_param {
struct rspamd_task *task;
gchar *host_resolve;
struct suffix_item *suffix;
- struct rspamd_async_watcher *w;
+ struct rspamd_symcache_item *item;
struct surbl_module_ctx *ctx;
};
@@ -120,7 +120,7 @@ struct redirector_param {
struct rspamd_http_connection *conn;
GHashTable *tree;
struct suffix_item *suffix;
- struct rspamd_async_watcher *w;
+ struct rspamd_symcache_item *item;
gint sock;
guint redirector_requests;
};
@@ -1323,6 +1323,7 @@ format_surbl_request (rspamd_mempool_t * pool,
static void
make_surbl_requests (struct rspamd_url *url, struct rspamd_task *task,
+ struct rspamd_symcache_item *item,
struct suffix_item *suffix,
gboolean forced, GHashTable *tree,
struct surbl_ctx *surbl_module_ctx)
@@ -1379,8 +1380,7 @@ make_surbl_requests (struct rspamd_url *url, struct rspamd_task *task,
if (make_dns_request_task (task,
surbl_dns_ip_callback,
(void *) param, RDNS_REQUEST_A, surbl_req)) {
- param->w = rspamd_session_get_watcher (task->s);
- rspamd_session_watcher_push (task->s);
+ param->item = item;
}
}
}