From: Christian Grothoff Date: Wed, 10 Jun 2009 03:29:39 +0000 (+0000) Subject: log X-Git-Tag: initial-import-from-subversion-38251~23817 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9030612d393e7e6377ec3ddc2ee6812f1a4826bc;p=oweals%2Fgnunet.git log --- diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 358ff2535..457d3f39b 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -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);