From a4150e60a1184d31f732fab399c3547671b73eb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 5 Apr 2011 23:39:08 +0000 Subject: [PATCH] The key producer may produce as twice as keys per second: - The key producer runs now with an interval delay of 5ms - Some debug messages/comments updated --- application/hub/config.php | 4 ++-- .../producer/keys/class_TestUnitKeyProducerIterator.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/hub/config.php b/application/hub/config.php index de147ba7b..47311bf19 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -307,7 +307,7 @@ $cfg->setConfigEntry('stacker_object_registry_max_size', 100); $cfg->setConfigEntry('stacker_outgoing_queue_max_size', 1000); // CFG: STACKER-INCOMING-QUEUE-MAX-SIZE -$cfg->setConfigEntry('stacker_incoming_queue_max_size', 1000); +$cfg->setConfigEntry('stacker_incoming_queue_max_size', 100000); // CFG: NEWS-MAIN-LIMIT $cfg->setConfigEntry('news_main_limit', 5); @@ -445,7 +445,7 @@ $cfg->setConfigEntry('task_cruncher_test_unit_producer_max_runs', 0); $cfg->setConfigEntry('task_cruncher_key_producer_startup_delay', 750); // CFG: TASK-CRUNCHER-KEY-PRODUCER-INTERVAL-DELAY -$cfg->setConfigEntry('task_cruncher_key_producer_interval_delay', 10); +$cfg->setConfigEntry('task_cruncher_key_producer_interval_delay', 5); // CFG: TASK-CRUNCHER-KEY-PRODUCER-MAX-RUNS $cfg->setConfigEntry('task_cruncher_key_producer_max_runs', 0); diff --git a/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php b/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php index 5feea77ba..77501e46f 100644 --- a/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php +++ b/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php @@ -49,14 +49,14 @@ class TestUnitKeyProducerIterator extends BaseIterator implements Iterator { // Get key length $this->keyLength = $this->getConfigInstance()->getConfigEntry('test_unit_random_secret_key_length'); - // Make sure the key length isn't getting to big (32 byte = 256 bit is really a lot) + // Make sure the key length isn't getting to big (32 byte = 256 bit is really, really a lot!) assert($this->keyLength <= (8 * 32)); // Set max bits entry $this->maxBits = pow(2, $this->keyLength); // Debug message - $this->debugOutput('ITERATOR: maxBits=' . $this->maxBits . ',keyLength=' . $this->keyLength); + $this->debugOutput('ITERATOR: maxBits=' . $this->maxBits . ',keyLength=' . $this->keyLength . ' bits'); } /** -- 2.39.5