aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-10 18:02:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-10 18:02:33 +0100
commit952850a4741c0e919879da7e16715d59c40eacca (patch)
tree5690c0f314cdd6883761163b1e14e3c3967cedd2 /src/libserver/rspamd_control.c
parent3d97675cf4361d30dd541eff5b6b13c57cf36b80 (diff)
downloadrspamd-952850a4741c0e919879da7e16715d59c40eacca.tar.gz
rspamd-952850a4741c0e919879da7e16715d59c40eacca.zip
[Project] Add heartbeat events
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r--src/libserver/rspamd_control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index 6c558629c..2ebdbc4d6 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -912,6 +912,10 @@ rspamd_srv_handler (EV_P_ ev_io *w, int revents)
rdata->rep.reply.on_fork.status = 0;
rspamd_control_handle_on_fork (&cmd, srv);
break;
+ case RSPAMD_SRV_HEARTBEAT:
+ worker->hb.last_event = ev_time ();
+ rdata->rep.reply.heartbeat.status = 0;
+ break;
default:
msg_err ("unknown command type: %d", cmd.type);
break;