struct GNUNET_DATASTORE_QueueEntry *pos;
unsigned int c;
+ if ( (h->queue_size == max_queue_size) &&
+ (h->queue_tail->priority >= queue_priority) )
+ {
+ GNUNET_STATISTICS_update (h->stats,
+ gettext_noop ("# queue overflows"),
+ 1,
+ GNUNET_NO);
+ GNUNET_MQ_discard (env);
+ return NULL;
+ }
+
c = 0;
pos = h->queue_head;
while ( (NULL != pos) &&
# How many requests do we have at most waiting in the queue towards
# the datastore? (important for memory consumption)
-DATASTORE_QUEUE_SIZE = 1024
+DATASTORE_QUEUE_SIZE = 32
# Maximum frequency we're allowed to poll the datastore
# for content for migration (can be used to reduce
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_INFO,
"fs",
"DATASTORE_QUEUE_SIZE");
- dqs = 1024;
+ dqs = 32;
}
GSF_datastore_queue_size = (unsigned int) dqs;
GSF_enable_randomized_delays =