diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-02 17:27:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-02 17:27:51 +0100 |
commit | 906eff799f483b8240f7cd2a1fce78cfe3da5edc (patch) | |
tree | c44c95d137e8afabb1f86e1e593b316c0c69ac73 /src/worker_private.h | |
parent | 1f55d8d46959b9661f5c4539cedd8a3ddfc2950a (diff) | |
download | rspamd-906eff799f483b8240f7cd2a1fce78cfe3da5edc.tar.gz rspamd-906eff799f483b8240f7cd2a1fce78cfe3da5edc.zip |
[Feature] Initial support of self-scan in Rspamd proxy
Diffstat (limited to 'src/worker_private.h')
-rw-r--r-- | src/worker_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/worker_private.h b/src/worker_private.h index ac391fc8c..b9a9e57d6 100644 --- a/src/worker_private.h +++ b/src/worker_private.h @@ -60,4 +60,14 @@ void rspamd_worker_init_scanner (struct rspamd_worker *worker, struct event_base *ev_base, struct rspamd_dns_resolver *resolver); +/* + * Called on forced timeout + */ +void rspamd_task_timeout (gint fd, short what, gpointer ud); + +/* + * Called on unexpected IO error (e.g. ECONNRESET) + */ +void rspamd_worker_guard_handler (gint fd, short what, void *data); + #endif |