aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-06-10 03:29:39 +0000
committerChristian Grothoff <christian@grothoff.org>2009-06-10 03:29:39 +0000
commit9030612d393e7e6377ec3ddc2ee6812f1a4826bc (patch)
treea7f99cac0654d44a02a8f4972111414c9f3292a0 /src
parent4cb5b89964d8e8db591ba3cedc1a830b63d6dd17 (diff)
downloadgnunet-9030612d393e7e6377ec3ddc2ee6812f1a4826bc.tar.gz
gnunet-9030612d393e7e6377ec3ddc2ee6812f1a4826bc.zip
log
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core.c8
1 files changed, 7 insertions, 1 deletions
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,
830 } 830 }
831 if ( (queue_size >= MAX_CLIENT_QUEUE_SIZE) && 831 if ( (queue_size >= MAX_CLIENT_QUEUE_SIZE) &&
832 (can_drop == GNUNET_YES) ) 832 (can_drop == GNUNET_YES) )
833 return; 833 {
834#if DEBUG_CORE
835 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
836 "Too many messages in queue for the client, dropping the new message.\n");
837#endif
838 return;
839 }
834 840
835 msize = ntohs (msg->size); 841 msize = ntohs (msg->size);
836 e = GNUNET_malloc (sizeof (struct Event) + msize); 842 e = GNUNET_malloc (sizeof (struct Event) + msize);