res.id = req.id;
res_data = evbuffer_new();
- if (res_data == NULL) {
+ if(res_data == NULL) {
res.res_errno = ENOMEM;
goto respond;
}
goto respond;
}
+ if(req.type == REQ_RETRY) {
+ logger(LOG_NOTICE, _("Got '%s' command"), "retry");
+ retry();
+ goto respond;
+ }
+
+ if(req.type == REQ_RELOAD) {
+ logger(LOG_NOTICE, _("Got '%s' command"), "reload");
+ res.res_errno = reload_configuration();
+ goto respond;
+ }
+
logger(LOG_DEBUG, _("Malformed control command received"));
res.res_errno = EINVAL;