log
authorChristian Grothoff <christian@grothoff.org>
Wed, 10 Jun 2009 03:29:39 +0000 (03:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 10 Jun 2009 03:29:39 +0000 (03:29 +0000)
src/core/gnunet-service-core.c

index 358ff2535ba90bae156c48bef33181429255526e..457d3f39b7f0073eba7c266858dc44836f109305 100644 (file)
@@ -830,7 +830,13 @@ send_to_client (struct Client *client,
     }
   if ( (queue_size >= MAX_CLIENT_QUEUE_SIZE) &&
        (can_drop == GNUNET_YES) )
-    return;
+    {
+#if DEBUG_CORE
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                 "Too many messages in queue for the client, dropping the new message.\n");
+#endif
+      return;
+    }
 
   msize = ntohs (msg->size);
   e = GNUNET_malloc (sizeof (struct Event) + msize);