[pisa-src] r1377 - trunk/pisacd/cdmain.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 28 Oct 2009 13:56:01 +0100

Author: tjansen
Date: Wed Oct 28 13:56:01 2009
New Revision: 1377

Log:
Added a reminder for necessary improvement.

Modified:
   trunk/pisacd/cdmain.c

Modified: trunk/pisacd/cdmain.c
==============================================================================
--- trunk/pisacd/cdmain.c       Wed Oct 28 13:32:08 2009        (r1376)
+++ trunk/pisacd/cdmain.c       Wed Oct 28 13:56:01 2009        (r1377)
@@ -117,6 +117,12 @@
 
                                if (FD_ISSET(cd_ctx.tund, &readfds))
                                        pisa_cd_copy_from_sock_to_tun();
+                       } else {
+                               /* TODO: Incoming packets after
+                                * is_cd_running is false will cause 100% CPU
+                                * load as select will immediately return.
+                                * Read (and ignore) from the fds mentioned
+                                * above. */
                        }
 
                        if (FD_ISSET(cd_ctx.tunc, &readfds))

Other related posts:

  • » [pisa-src] r1377 - trunk/pisacd/cdmain.c - Thomas Jansen