[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Try to keep the cadet->code
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Try to keep the cadet->code MQ from growing too large |
Date: |
Thu, 11 Jan 2018 04:48:37 +0100 |
This is an automated email from the git hooks/post-receive script.
david-barksdale pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new bca8edf17 Try to keep the cadet->code MQ from growing too large
bca8edf17 is described below
commit bca8edf17fc90862e7267ff22b70a1b7dc94ec96
Author: David Barksdale <address@hidden>
AuthorDate: Wed Jan 10 21:48:05 2018 -0600
Try to keep the cadet->code MQ from growing too large
---
src/cadet/gnunet-service-cadet_peer.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/cadet/gnunet-service-cadet_peer.c
b/src/cadet/gnunet-service-cadet_peer.c
index da78a03c4..05555e693 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -59,7 +59,10 @@
*/
#define IDLE_PATH_TIMEOUT
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 2)
-
+/**
+ * Queue size when we start dropping OOO messages.
+ */
+#define MAX_OOO_QUEUE_SIZE 100
/**
@@ -1464,6 +1467,11 @@ GCP_send_ooo (struct CadetPeer *cp,
GNUNET_MQ_discard (env);
return;
}
+ if (GNUNET_MQ_get_length (cp->core_mq) > MAX_OOO_QUEUE_SIZE)
+ {
+ GNUNET_MQ_discard (env);
+ return;
+ }
GNUNET_MQ_notify_sent (env,
&mqm_send_done,
cp);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Try to keep the cadet->code MQ from growing too large,
gnunet <=