}
g_hash_table_insert (data->tokens, cl->tokenizer, tokens);
}
+
+ if (tokens == NULL) {
+ return;
+ }
ctx = cl->classifier->init_func (task->task_pool, cl);
cl->classifier->classify_func (ctx, task->worker->srv->statfile_pool, tokens, task);
cd->task->save.saved = 1;
process_filters (cd->task);
}
+ remove_forced_event (cd->task->s, (event_finalizer_t)lua_dns_callback);
}
}
if (evdns_resolve_ipv4 (cd->to_resolve, DNS_QUERY_NO_SEARCH, lua_dns_callback, (void *)cd) == 0) {
task->save.saved ++;
+ register_async_event (task->s, (event_finalizer_t)lua_dns_callback, NULL, TRUE);
}
}
return 0;
}
if (evdns_resolve_reverse (ina, DNS_QUERY_NO_SEARCH, lua_dns_callback, (void *)cd) == 0) {
task->save.saved ++;
+ register_async_event (task->s, (event_finalizer_t)lua_dns_callback, NULL, TRUE);
}
}
return 0;