holy crap there is some old cruft in here I have to rewrite!
authorArt Cancro <ajc@citadel.org>
Sun, 31 Jan 2021 01:51:34 +0000 (20:51 -0500)
committerArt Cancro <ajc@citadel.org>
Sun, 31 Jan 2021 01:51:34 +0000 (20:51 -0500)
citadel/modules/network/serv_network.c
citadel/server.h
citadel/threads.c

index 6828b99b02f78b3cfda39418de1a20a16e4b44b0..6ed123eb090f1d10e0b1f711b518fc035e6ff715 100644 (file)
 #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";
 }
index 9215d2e7e9c614b3d483afdf39f8db8660d86c36..ff5c3355e8b6d869d52dbba40f8e626cbdf89cc0 100644 (file)
@@ -149,7 +149,6 @@ enum {
        S_FLOORCACHE,
        S_ATBF,
        S_JOURNAL_QUEUE,
-       S_RPLIST,
        S_CHKPWD,
        S_LOG,
        S_NETSPOOL,
index ab7157bd83a5a3cc1738a4debab3c5c5951d68b5..18641b5456491ce4201069b5cd55a64e6403b19c 100644 (file)
@@ -53,7 +53,6 @@ int try_critical_section(int which_one)
         * transaction; this could lead to deadlock.
         */
        if (    (which_one != S_FLOORCACHE)
-               && (which_one != S_RPLIST)
        ) {
                cdb_check_handles();
        }
@@ -71,7 +70,6 @@ void begin_critical_section(int which_one)
         * transaction; this could lead to deadlock.
         */
        if (    (which_one != S_FLOORCACHE)
-               && (which_one != S_RPLIST)
        ) {
                cdb_check_handles();
        }