From: Christian Grothoff Date: Thu, 23 Feb 2017 13:28:42 +0000 (+0100) Subject: complain if MQ gets way too long X-Git-Tag: taler-0.2.1~70^2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f8ad5f4421b88d22cdb67e0188de132a0031cbc;p=oweals%2Fgnunet.git complain if MQ gets way too long --- diff --git a/src/util/mq.c b/src/util/mq.c index 95bcd71cb..75b58bc71 100644 --- a/src/util/mq.c +++ b/src/util/mq.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2012-2014 GNUnet e.V. + Copyright (C) 2012-2017 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -358,6 +358,7 @@ GNUNET_MQ_send (struct GNUNET_MQ_Handle *mq, GNUNET_assert (NULL == ev->parent_queue); mq->queue_length++; + GNUNET_break (mq->queue_length < 10000); /* This would seem like a bug... */ ev->parent_queue = mq; /* is the implementation busy? queue it! */ if ( (NULL != mq->current_envelope) ||