diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 17:00:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 17:00:46 +0000 |
commit | f8be5f536bda6428c8fdbe306b8ceab88dedcf58 (patch) | |
tree | 6bd7bdb2af1d6f97dbedcf57fc4fab56ef9ff473 /src/libserver/task.h | |
parent | 14c1c342fadc78232bc4dfefb6b39d7f07bf456a (diff) | |
download | rspamd-f8be5f536bda6428c8fdbe306b8ceab88dedcf58.tar.gz rspamd-f8be5f536bda6428c8fdbe306b8ceab88dedcf58.zip |
[Minor] Move functions
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h index feac456dd..50e07b23f 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -375,6 +375,16 @@ gboolean rspamd_task_set_finish_time (struct rspamd_task *task); */ const gchar *rspamd_task_stage_name (enum rspamd_task_stage stg); +/* + * Called on forced timeout + */ +void rspamd_task_timeout (EV_P_ ev_timer *w, int revents); + +/* + * Called on unexpected IO error (e.g. ECONNRESET) + */ +void rspamd_worker_guard_handler (EV_P_ ev_io *w, int revents); + #ifdef __cplusplus } #endif |