gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2190 - GNUnet/src/server


From: durner
Subject: [GNUnet-SVN] r2190 - GNUnet/src/server
Date: Thu, 13 Oct 2005 13:34:10 -0700 (PDT)

Author: durner
Date: 2005-10-13 13:34:08 -0700 (Thu, 13 Oct 2005)
New Revision: 2190

Modified:
   GNUnet/src/server/connection.c
Log:
debug info

Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c      2005-10-13 20:00:07 UTC (rev 2189)
+++ GNUnet/src/server/connection.c      2005-10-13 20:34:08 UTC (rev 2190)
@@ -913,6 +913,9 @@
          (entry->pri >= EXTREME_PRIORITY)) {
         entry->knapsackSolution = YES;
         (*priority) += entry->pri;
+#if DEBUG_CONNECTION
+        LOG(LOG_DEBUG, "Selecting msg %u with length %u\n", i, entry->len);
+#endif
         totalMessageSize += entry->len;
       }
       else {
@@ -932,6 +935,9 @@
           be->available_send_window) &&
          (totalMessageSize + entry->len < MAX_BUFFER_SIZE)) {
         entry->knapsackSolution = YES;
+#if DEBUG_CONNECTION
+        LOG(LOG_DEBUG, "Selecting msg %u with length %u\n", i, entry->len);
+#endif
         totalMessageSize += entry->len;
         (*priority) += entry->pri;
       }
@@ -1386,6 +1392,9 @@
     if (entry == NULL)
       continue;
     if (entry->knapsackSolution == YES) {
+#if DEBUG_CONNECTION
+        LOG(LOG_DEBUG, "Queuing msg %u with length %u\n", perm[i], entry->len);
+#endif
       GNUNET_ASSERT(entry->callback == NULL);
       GNUNET_ASSERT(p + entry->len <= totalMessageSize);
       memcpy(&plaintextMsg[p],





reply via email to

[Prev in Thread] Current Thread [Next in Thread]