[pisa-src] r1174 - in trunk/pisacd: cdheartbeat.c cdpending.c cdtimeout.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2009 16:22:16 +0200

Author: tjansen
Date: Thu Oct 15 16:22:16 2009
New Revision: 1174

Log:
Added some reminders what I should refactor after the demo.

Modified:
   trunk/pisacd/cdheartbeat.c
   trunk/pisacd/cdpending.c
   trunk/pisacd/cdtimeout.c

Modified: trunk/pisacd/cdheartbeat.c
==============================================================================
--- trunk/pisacd/cdheartbeat.c  Thu Oct 15 16:15:24 2009        (r1173)
+++ trunk/pisacd/cdheartbeat.c  Thu Oct 15 16:22:16 2009        (r1174)
@@ -96,6 +96,9 @@
        }
 }
 
+/* TODO: Start a separate heartbeat task for each connection
+ *       Get rid of entry->timeout_heartbeat */
+
 /**
  * Check all connections for their last received time to see if we need to
  * send a heartbeat.

Modified: trunk/pisacd/cdpending.c
==============================================================================
--- trunk/pisacd/cdpending.c    Thu Oct 15 16:15:24 2009        (r1173)
+++ trunk/pisacd/cdpending.c    Thu Oct 15 16:22:16 2009        (r1174)
@@ -17,6 +17,9 @@
 #include "util.h"
 #include "scheduler.h"
 
+/* TODO: rewrite pending, only need the data structure, scheduling can be done
+ *       scheduler, no need to maintain a duplicate infrastructure. */
+
 /**
  * Adds a number of microseconds to a timeval.
  * @param t original time, later contains the result

Modified: trunk/pisacd/cdtimeout.c
==============================================================================
--- trunk/pisacd/cdtimeout.c    Thu Oct 15 16:15:24 2009        (r1173)
+++ trunk/pisacd/cdtimeout.c    Thu Oct 15 16:22:16 2009        (r1174)
@@ -16,6 +16,9 @@
 #include "cdderegister.h"
 #include "scheduler.h"
 
+/* TODO: Start an update task for each connection.
+ *       Get rid of entry->timeout_client */
+
 /**
  * Check if a connection was idle for too long and disconnect.
  * @param data  pointer to the current time (only provided this way to avoid

Other related posts:

  • » [pisa-src] r1174 - in trunk/pisacd: cdheartbeat.c cdpending.c cdtimeout.c - Thomas Jansen