X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fserv_network.c;fp=citadel%2Fmodules%2Fnetwork%2Fserv_network.c;h=6ed123eb090f1d10e0b1f711b518fc035e6ff715;hp=6828b99b02f78b3cfda39418de1a20a16e4b44b0;hb=fd710adc44e642ad7b62cffbb7114c5b3f82bed4;hpb=7da0254bb7b5d10b71428443d55046bd4501aff8 diff --git a/citadel/modules/network/serv_network.c b/citadel/modules/network/serv_network.c index 6828b99b0..6ed123eb0 100644 --- a/citadel/modules/network/serv_network.c +++ b/citadel/modules/network/serv_network.c @@ -69,44 +69,6 @@ #include "netspool.h" #include "netmail.h" -/* comes from lookup3.c from libcitadel... */ -extern uint32_t hashlittle( const void *key, size_t length, uint32_t initval); - -/* - * network_do_queue() - * - * Run through the rooms doing various types of network stuff. - */ -void network_do_queue(void) { - static time_t last_run = 0L; - int full_processing = 1; - - /* - * Run the full set of processing tasks no more frequently - * than once every n seconds - */ - if ( (time(NULL) - last_run) < CtdlGetConfigLong("c_net_freq") ) { - full_processing = 0; - syslog(LOG_DEBUG, "network: full processing in %ld seconds.", CtdlGetConfigLong("c_net_freq") - (time(NULL)- last_run)); - } - - begin_critical_section(S_RPLIST); - end_critical_section(S_RPLIST); - - /* - * Go ahead and run the queue - */ - if (full_processing && !server_shutting_down) { - syslog(LOG_DEBUG, "network: loading outbound queue"); - //CtdlForEachNetCfgRoom(network_queue_interesting_rooms, &RL); - // FIXME do the outbound crapola AJC 2021 - } - syslog(LOG_DEBUG, "network: queue run completed"); - - if (full_processing) { - last_run = time(NULL); - } -} /* @@ -116,7 +78,6 @@ CTDL_MODULE_INIT(network) { if (!threading) { - CtdlRegisterSessionHook(network_do_queue, EVT_TIMER, PRIO_QUEUE + 10); } return "network"; }