From 6f8ad5f4421b88d22cdb67e0188de132a0031cbc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 23 Feb 2017 14:28:42 +0100 Subject: complain if MQ gets way too long --- src/util/mq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) || -- cgit v1.2.3